Giter Site home page Giter Site logo

eazyal / substra-documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from substra/substra-documentation

0.0 0.0 0.0 54.5 MB

Documentation of the Substra software

Home Page: https://docs.substra.org/

License: Apache License 2.0

Shell 100.00%

substra-documentation's Introduction

Substra documentation



Substra


Substra is an open source federated learning (FL) software. This specific repository is the documentation of Substra.

This documentation is hosted on Read The Docs and can be found here.

Support

If you need support, please either raise an issue on Github or ask on Slack.

Setup

Contributing

If you would like to contribute to this documentation please clone it locally and make a new branch with the suggested changes.

You should use python 3.8.

To deploy the documentation locally you will need to install all the necessary requirements which you can find in the 'requirements.txt' file of the root of this repository. You can use pip in your terminal to install it: pip install -r requirements.txt.

Install substra, substratools and substrafl in editable mode

โš ๏ธ if you have these repositories installed in non-editable mode, it will not work.

Install the repositories in editable mode:

git clone [email protected]:Substra/substra.git
cd substra && pip install -e . && cd ..
git clone [email protected]:Substra/substra-tools.git
cd substra-tools && pip install -e . && cd ..
git clone [email protected]:Substra/substrafl.git
cd substrafl && pip install -e '.[dev]' && cd ..

Build the documentation locally

Next, to build the documentation move to the docs directory: cd docs

And then: make clean html

The first time you run it or if you updated the examples library it may take a little longer to build the whole documentation.

To see the doc on your browser : make livehtml And then go to http://127.0.0.1:8000

Once you are happy with your changes push your branch and make a pull request.

Thank you for helping us improving!

Add a new example

  • Put the example folder in substra-documentation/examples if it is a Substra example, substra-documentation/substrafl_examples if it is a Substrafl example.

  • create a README.rst file at the root of the example

  • The main file that is executed must match the regex run_*.py, e.g. run_titanic.py (source)

  • It must also be structured as described in the Sphinx gallery documentation. In particular, the folder containing the run_*.py example file must contain a README.rst file.

  • Add the assets:

    • use the zip_dir function in the conf.py file to zip the assets

    • add the link to download the assets to the example's docstring:

      .. only:: builder_html or readthedocs
      
          :download:`assets required to run this example <../../ASSET_NAME.zip>`
  • thumbnail: add the path to the image in a comment in a cell of the example

    # sphinx_gallery_thumbnail_path = 'auto_examples/EXAMPLE_FOLDER_NAME/images/thumb/sphx_glr_plot_thumb.jpg'

Releases

The documentation is released for each Substra release. When a semver tag is pushed or a release is created, the doc is builded and published to ReadTheDocs by the CI. Then ReadTheDocs automatically activates this version and set it as default (takes a few minutes). You can follow the build on the CI here and on ReadTheDocs if you have access to the project.

substra-documentation's People

Contributors

natct10 avatar thibaultfy avatar romaingoussault avatar maikia avatar fabien-gelus avatar esadruhn avatar jmorel avatar sdgjlbl avatar oleobal avatar mblottiere avatar louishulot avatar eazyal avatar guilhem-barthes avatar alexandrepicosson avatar milouu avatar aureliengasser avatar bowni avatar ic-1101asterisk avatar maximemowkin avatar clementmayer avatar grouane avatar jjerphan avatar thbcmlowk avatar acellard avatar adarbier avatar davidendico-owkin avatar dependabot[bot] 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.