About this documentation
This documentation is using
ReadTheDocs for publishing and a theme
Sphinx with both reStructuredText and Markdown for writing and structuring
Mermaid for diagrams
Contributing to the documentation
Working locally
Requires
git
Clone Repository or refresh your version with the latest changes
# Fresh clone git clone git@github.com:culibraries/documentation.git # Update local version with any changes git checkout main git pull
Create a new branch. The name of the branch usually relates to the GitHub Issue you are working on. Example:
issue/20.git checkout -n [new-branch-name]
Make your changes and commit your work.
git add * # Stages all new and changed files git commit -m "Message about what you changed" # Commit your changes to the local copy of your branch git push --set-upstream origin [new-branch-name] # Push your changes out to GitHub
Open a Pull (Merge) Request.
Visit the Compare changes webpage and create a Pull Request with
mainas the base and[my-new-branch]as the comparison.A version of the documentation with your changes is created and linked in the open Pull Request
We recommend having another person review and merge your changes. You can use the
Reviewerssection to request a review and generate a notification to the requested Reviewers.
Working in your browser
Create a new branch. The name of the branch usually relates to the GitHub Issue you are working on. Example:
issue/20.Visit the Branch webpage and create a
New Branch
Return to the main page for the repository and chose the branch you created.
Navigate the file structure and make your changes, committing each file you edit.
Open a Pull (Merge) Request.
Visit the Compare changes webpage and create a Pull Request with
mainas the base and[my-new-branch]as the comparison.A version of the documentation with your changes is created and linked in the open Pull Request
We recommend having another person review and merge your changes. You can use the
Reviewerssection to request a review and generate a notification to the requested Reviewers.
Building documentation locally
Building the documentation locally will allow you to preview your changes before submitting them. It is not required in order to contribute, it can be a helpful tool.
Installation
Requires
Python 3.3 or greater
git
Clone Repository
git clone git@github.com:culibraries/documentation.git
Create Virtual Environment and install packages
# Enter in this repository cd folio # Use python to create a virtual environment to build the documentation python3 -m venv venv # Begin to utilize the new virtual environment . venv/bin/activate # Install the packages required to build the documentation pip install -r requirements.txt
On Windows using a cmd.exe shell
# Enter in this repository cd folio # Use python to create a virtual environment to build the documentation python3 -m venv <dir> # Begin to utilize the new virtual environment venv\Scripts\activate.bat # Install the packages required to build the documentation pip install -r requirements.txt
Build the documentation
You can open the local folio/docs/_build/html/index.html file in a browser and see the documentation. You need to “build” the documentation and refresh the webpage after each change.
cd docs
make html
FOLIO Apps Documentation Markup Keys
This is a style guide to help deferentiate different actions within the FOLIO LSP documentation
App level interactions should be enclosed with a single grave accent (found on tilde key next to the number 1 key)
``Users App`Dropdown menus and click box titles should be enclosed with a single asterisk
**Dropdown menu and click boxes*Radio buttons should be enclosed in double asterisks
****Radio buttons**