/README.rst

https://github.com/adamchainz/Dash.py · ReStructuredText · 52 lines · 31 code · 21 blank · 0 comment · 0 complexity · cebbfcfeb1235713d4d7d3cc5ddbb29b MD5 · raw file

  1. Dash.py
  2. =======
  3. Dash.py is a tool that helps you install python documents to Dash easily.
  4. Usage
  5. -------------
  6. Installing python documents to Dash via Dash.py is easy ::
  7. dash.py install flask
  8. dash.py install tornado jinja2 sqlalchemy
  9. Installation
  10. --------------
  11. You can install dash.py via pip ::
  12. pip install dash.py
  13. If you don't have pip, you should install it first ::
  14. curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
  15. Adding a package
  16. ------------------
  17. .. note:: You don't need to add a package which is hosted on rtfd.org . Dash.py can download docset from rtfd.org automatically.
  18. It's pretty easy to add a new package in Dash.py :
  19. * Fork the project
  20. * Add a new file in dash_py/packages folder.
  21. Filename should be ``package_name.yaml`` . Now that package name should be lower case.
  22. It should be a vailed yaml file.
  23. It looks like ::
  24. name: Jinja2 # Package name
  25. type: html # Type. Supported types are ``html`` , ``docset`` and ``sphinx``
  26. format: zip # Format. Should be either ``zip``, ``tar`` or ``git``. Note that Gzipped Tar file should be ``tar``
  27. url: http://jinja.pocoo.org/docs/jinja-docs.zip # URL to download the file or to clone the git repo.
  28. icon: _static/jinja-small.png # OPTIONAL. path to icon file.
  29. sphinx_doc_path: doc # OPTIONAL. If the type is sphinx and sphinx conf file isn't in the root path, you need to provide this.
  30. * git add && git commit
  31. * Send a pull request.