-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Flesh out documentation * Add note about YAML syntax for formats * Rename "annex" to "active" More accurately describe what this additional css is for * Convert document structure to sub-sections with cross-references * Add templates for individual variant or download items * Improve phrasing * Fix grammar * Remove unnecessary IFrame class FileTemplate is sufficient * Add NIST disclaimer * Rename sub-action modules to differentiate them * Document classes and methods * Incorporate API documentation
- Loading branch information
Showing
46 changed files
with
640 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
update_pages/ntd2d_action/files/file.py → ...e_docs/borg_the_docs_action/files/file.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
class File: | ||
"""Base file class | ||
""" | ||
def __init__(self): | ||
pass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Q & A | ||
===== | ||
|
||
Can't I just use Read the Docs? | ||
------------------------------- | ||
|
||
Nope. | ||
|
||
Is there a reason? | ||
------------------ | ||
|
||
Yep. | ||
|
||
Is it a good reason? | ||
-------------------- | ||
|
||
Nope. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
.. _BORGTHEDOCS: | ||
|
||
``borg_the_docs`` Sub-Action | ||
============================ | ||
|
||
This `GitHub action <https://docs.github.com/en/actions>`_ is invoked by | ||
the main :ref:`NISTTHEDOCS2DEATH` to modify the Sphinx configuration before | ||
building the documentation. | ||
|
||
Usage | ||
----- | ||
|
||
This action is invoked as a step of the composite workflow of the | ||
:ref:`NISTTHEDOCS2DEATH`. There is no reason to invoke this action | ||
yourself. | ||
|
||
.. code-block:: yaml | ||
- name: Add cruft to theme | ||
id: borg-the-docs | ||
uses: ./../../_actions/current/borg_the_docs | ||
with: | ||
docs-folder: 'docs/' | ||
separated-layout: false | ||
.. note:: | ||
|
||
This action must be synchronized with the invoked version of the | ||
:ref:`NISTTHEDOCS2DEATH`, but | ||
"``usnistgov/NISTtheDocs2Death/borg_the_docs@${{ github.action_ref }}``" | ||
`doesn't work | ||
<https://github.com/orgs/community/discussions/41927#discussioncomment-4605881>`_, | ||
hence the clumsy ``uses:`` statement. | ||
|
||
Inputs | ||
------ | ||
|
||
``docs-folder`` | ||
~~~~~~~~~~~~~~~ | ||
|
||
The folder containing your Sphinx configuration. | ||
|
||
``separated-layout`` | ||
~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Whether Sphinx is configued to have separate :file:`source/` and | ||
:file:`build/` directories. | ||
|
||
Outputs | ||
------- | ||
|
||
``borged-docs-folder`` | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The folder containing the Sphinx configuration modified by this Action. | ||
|
||
|
||
Implementation | ||
-------------- | ||
|
||
This action implements a `Docker workflow step | ||
<https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action>`_. | ||
The Docker ``ENTRYPOINT`` installs any :file:`requirements.txt` in the | ||
`Sphinx configuration directory | ||
<https://www.sphinx-doc.org/en/master/usage/configuration.html>`_, wraps | ||
the :file:`conf.py` file with a | ||
:class:`~borg_the_docs_action.files.borgedconffile.BorgedConfFile` object, | ||
and invokes | ||
:meth:`~borg_the_docs_action.files.borgedconffile.BorgedConfFile.assimilate_theme`. | ||
|
||
|
||
API | ||
~~~ | ||
|
||
.. autosummary:: | ||
:toctree: generated | ||
:recursive: | ||
|
||
borg_the_docs_action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.