Building Your Webpages ====================== This section will discuss the ``origen web`` command in more detail and cover some of the available options for ``origen web build``. ---- At the very beginning, we introduced the build command: ``origen web build --view`` as a means to generate and view your project's documentation. Now that we've covered more of what Origen and Sphinx have to offer, we can revisit this command and take a closer look at some of its options. Origen Web ---------- The ``build`` command is actually a subcommand in the larger ``origen web`` command. Running ``origen web --help`` will show you what can be done with the *Sphinx app* from the CLI: {% set origen_exec = '../rust/origen/target/debug/origen.exe' if origen.running_on_windows else '../rust/origen/target/debug/origen' -%} {% set run_in_shell = false if origen.running_on_windows else true -%} {{ insert_cmd_output(origen_exec + " web --help", shell=run_in_shell) }} Building ^^^^^^^^ You should now be familiar with the ``build`` command's basic usage, but what about some of the other options? Running ``build`` with ``--help`` gives us the following options: {{ insert_cmd_output(origen_exec + " web build --help", shell=run_in_shell) }} ``--no-api`` was mentioned when discussing |documenting:api_generation| but to recap: this option will bypass generating any API contents. Existing contents will persist though, so this option can be used without any ill-effects provided the API source hasn't changed. However, this also means that continuously running with ``--no-api`` during development could result in stale API documentation. Viewing And Cleaning ^^^^^^^^^^^^^^^^^^^^ ``Sphinx`` is *makefile-like*, in that it will only recompile changed files, leading to faster build times. A side-effect of this, however, is that the web browser may still be launched, even on a failing build, giving the illusion that the build succeeded. An easy way to get around the above is just to wipe out the results and rebuild from scratch. The ``origen web clean`` command will do just that. Running this command will remove any webpages from a previous build, forcing a full recompilation. It will also run ``clean`` on any :sphinx_extensions:`extensions <>` which supports cleaning. The webpages can also be built with a clean *Sphinx app* using ``origen web build --clean``. This is the same as running: .. code:: none origen web clean origen web build Likewise, the commands: .. code:: none origen web clean origen web build origen web view Can all be mashed into the same command as ``origen web build --clean --view`` Releasing ^^^^^^^^^ When the documentation is complete, it can be *released* by using the ``-r``, or ``--release`` switch. The release procedure and location is dependent on options in the *Origen application*. .. raw:: html