Document Maintenance¶
Document Software Setup¶
The DejaCode User Guide is built using Sphinx. See http://www.sphinx-doc.org/en/master/index.html
Individual document files are in reStructuredText format. See http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
You create, build, and preview DejaCode documentation on your local machine.
You commit your updates to the DejaCode repository on GitHub.
Clone DejaCode¶
To get started, create or identify a working directory on your local machine.
Open that directory and execute the following command in a terminal session:
git clone https://github.com/aboutcode-org/dejacode.git
That will create a dejacode directory in your working directory. Now you can build the HTML documents locally (requires uv):
cd dejacode
make docs
Sphinx builds a local instance of the documentation .html files:
open docs/_build/html/index.html
You now have a local build of the DejaCode documents.
Format and style¶
Use the following tags to highlight elements of the documentation:
Button/Link: Click here
Value:
valueField: Field Name
Improve DejaCode Documents¶
Before you begin creating and modifying DejaCode documents, be sure that you understand the basics of reStructuredText as explained at http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
Ensure that you have the latest DejaCode files:
git pull
git status
Use your favorite text editor to create and modify .rst files to make your documentation improvements.
Review your work:
make docs
open docs/_build/html/index.html
Validate the .rst files:
make check