Giter VIP home page Giter VIP logo

test_lib's Introduction

test_lib

Creating my first library

Installation

pip install my_lib

Example use-case

python run.py

Guides used

https://redandgreen.co.uk/sphinx/

(my_lib) C:\Users\aabywan\Downloads\test_lib>sphinx-apidoc -o ./docs ./phaser

https://redandgreen.co.uk/sphinx-to-github-pages-via-github-actions/ https://towardsdatascience.com/deep-dive-create-and-publish-your-first-python-library-f7f618719e14

Configuring Sphinx to autodoc subfolders!

  • In the root folder of the git repository, create a "docs" folder
    • mkdir docs
  • Change directory to the docs folder
    • cd docs
  • Run the quickstart guide
    • sphinx-quickstart
    • Press "n" when asked to split folders
  • Then use sphinx-apidoc to automatically create the .rst files
    • sphinx-apidoc -o ../docs ../phaser
  • Modify the "./docs/conf.py" file and add ...
    import sys, os
    sys.path.insert(0, os.path.abspath('..'))
    #
    extensions = ["sphinx.ext.autodoc"]
    #
    html_theme = 'sphinx_rtd_theme'
  • Add 'modules.rst' and other .rst files to 'index.rst'
    .. toctree::
    :maxdepth: 2
    :caption: Contents:
    
    example
    modules
  • From the docs directory, make the html code
    make html
    

test_lib's People

Contributors

aabywan avatar smck1 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.