Coder Social home page Coder Social logo

mrcmry / spinaldoc-rtd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spinalhdl/spinaldoc-rtd

0.0 0.0 0.0 15.75 MB

The sources of the online SpinalHDL doc

Home Page: https://spinalhdl.github.io/SpinalDoc-RTD/

License: Creative Commons Zero v1.0 Universal

Shell 5.52% JavaScript 9.27% Python 41.30% CSS 19.47% Makefile 1.94% HTML 19.74% Dockerfile 2.77%

spinaldoc-rtd's Introduction

SpinalDoc

This is the documentation repository for SpinalHDL.

It is published on spinalhdl.github.io/SpinalDoc-RTD.

There is also a Chinese version on spinalhdl-cn.github.io/SpinalDoc-RTD. This continuous localization version is maintained with the help of Weblate.

You can also find the API documentation on spinalhdl.github.io/SpinalHDL.

How to build this documentation

With venv

Requirements (system)

  • make
  • git

Create a virtual environment with pipenv (will use the Pipfile for installing the necessary packages)

python3 -m venv .venv

then you can activate the virtual environment (in bash) and install the dependencies

source .venv/bin/activate
pip install -r requirements.txt

and then you can use make the usual way

make html     # for html
make latex    # for latex
make latexpdf # for latex (will require latexpdf installed)
make          # list all the available output format

all the outputs will be in docs folder (for html: docs/html)

The Chinese version can be built by

make -e SPHINXOPTS="-D language='zh_CN'" html # for html in Chinese

With Docker

Requirements (system):

  • docker
  • git

To create the custom docker image (with python and its dependencies):

docker build -t spinaldoc-rtd .

Then to build the docs:

docker run -it --rm -v $PWD:/docs spinaldoc-rtd

You can still run custom commands in the docker, for instance to clean:

docker run -it --rm -v $PWD:/docs spinaldoc-rtd make clean

It is also possible to create the custom docker image to build a pdf (heavier):

docker build -f pdf.Dockerfile -t spinaldoc-pdf .

And to run it:

docker run -it --rm -v $PWD:/docs spinaldoc-pdf

Native

Requirements (system):

  • make
  • git

Requirements (Python 3):

  • sphinx
  • sphinx-rtd-theme
  • sphinxcontrib-wavedrom
  • sphinx-multiversion

After installing the requirements you can run

make html     # for html
make latex    # for latex
make latexpdf # for latex (will require latexpdf installed)
make          # list all the available output format

you can create build multiple version of the doc via

sphinx-multiversion source docs/html

in the docs/html there will be a folder with the builded doc for each branch and tag

spinaldoc-rtd's People

Contributors

readon avatar tsy0123 avatar dolu1990 avatar wifasoi avatar dlmiles avatar andreaswallner avatar numero-744 avatar jijingg avatar actions-user avatar ronan-lashermes avatar philipaconrad avatar pythonlinks avatar saahm avatar volatile-static avatar wswslzp avatar c-elegans avatar mrcmry avatar typingartist avatar weblate avatar someparticles avatar kleinai avatar mindshow avatar jiegec avatar uxuh avatar pulserainmaker avatar snoopy87 avatar distributed avatar marekpikula avatar eric1993-mkt avatar ianboyanzhang avatar

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.