Skip to content

oceanprotocol/readthedocs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ocean_read_the_docs

A repository to generate documentation from doc strings

Setup

Prerequisites

  1. Python 3.8+

Initial setup

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

Usage:

  1. Check if intended submodule points to correct branch and has all the required commits. Submodules will be cloned in submodules directory. If not, pull the changes from remote submodule.
  • Check branch

    cd submodules/ocean.py && git branch

  • Check commits

    git log

    cd ../..

  1. Checkout new feature branch. git checkout -b feature/<name>

  2. Generate the markdowns.

    python generate_markdowns.py -l ocean.py aquarius provider ocean-subgraph

  3. Stage, Commit and Push changes

    git add .

    git commit -m "message"

    git push origin <branchname>

  4. Create a pull request and merge changes to main branch.

  5. Refresh the Ocean Procotol docs deployment by creating a new PR with a dummy commit.

  • Clone docs repository and create a new branch.
  • git commit --allow-empty -m "Trigger rebuild".
  • Push the changes.
  • Create a new PR.
  • Merge the PR to main.

Script options

  • -l : List of apps
  • -v : Verbose logging
  • -m : List of modules (optional). If not provided, scirpt will generate docs for all the modules.

About

A repository to generate documentation from doc strings

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages