Coder Social home page Coder Social logo

dash-docset-jax's Introduction

JAX+Flax offline documentation in dash/zeal docset browser

screenshot

To use, you can add this feed in Dash/Zeal directly:

https://raw.githubusercontent.com/ppwwyyxx/dash-docset-jax/master/Jax.xml

Or download the latest release here.

Steps to generate the docset

  1. Install JAX and Flax
  2. pip install tqdm python-magic selectolax doc2dash beautifulsoup4 lxml
  3. Build their documentation together:
    git clone https://github.com/google/jax /tmp/jax
    git clone https://github.com/google/flax /tmp/flax
    
    cd /tmp/flax/docs/
    # Install necessary doc dependencies from requirements.txt, then:
    sphinx-build -b html -D nb_execution_mode=off ./ ./build/html -j auto
    
    cd /tmp/jax/docs
    cp -rv /tmp/flax/docs/api_reference/flax.* ./
    # Install necessary doc dependencies from requirements.txt, then:
    sphinx-build -b html -D nb_execution_mode=off ./ ./build/html -j auto
    
  4. cd to this project, then run the following to beautify the docs:
    export HTML_DIR=/tmp/jax/docs/build/html
    # Beautify the docs for more friendly display:
    ./transform.py $HTML_DIR
    # Use monospace font for code:
    sed -i 's/var(--pst-font-family-monospace)/monospace/g' $HTML_DIR/**/*.css
    doc2dash -f -d ./ -u https://jax.readthedocs.io/ --name jax -i icon.png $HTML_DIR
    
    This will generate jax.docset that can be installed into Zeal/Dash.

Others

  • Latex renders correctly:

math

  • Syntax highlight works (check flax.linen.map_variables)

dash-docset-jax's People

Contributors

ppwwyyxx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

evdcush

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.