A repository to generate documentation from doc strings
- Python 3.8+
python -m venv venv
source venv/bin/activate
# or, if Python 3.9: source venv/Scripts/activate
pip install wheel
pip install -r requirements.txt
git submodule update --init --recursive
git submodule foreach -q --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo main)'
git pull "$@" &&
git submodule sync --recursive &&
git submodule update --init --recursive- Check if intended submodule points to correct branch and has all the required commits. Submodules will be cloned in
submodulesdirectory. If not, pull the changes from remote submodule.
-
Check branch
cd submodules/ocean.py && git branch -
Check commits
git logcd ../..
-
Checkout new feature branch.
git checkout -b feature/<name> -
Generate the markdowns.
python generate_markdowns.py -l ocean.py aquarius provider ocean-subgraph -
Stage, Commit and Push changes
git add .git commit -m "message"git push origin <branchname> -
Create a pull request and merge changes to
mainbranch. -
Refresh the Ocean Procotol docs deployment by creating a new PR with a dummy commit.
- Clone
docsrepository and create a new branch. git commit --allow-empty -m "Trigger rebuild".- Push the changes.
- Create a new PR.
- Merge the PR to
main.
-l: List of apps-v: Verbose logging-m: List of modules (optional). If not provided, scirpt will generate docs for all the modules.