Code Monkey home page Code Monkey logo

sphinx-python-trianglelib's Introduction

Sphinx Python TriangleLib

Introduction

This repository is an updated version for Brandon Rhodes's Sphinx tutorial presented at PyCon every year from 2010 through 2013. The original tutorial was written for Python 2 using Sphinx 1.x, and has not been updated since 2013. Since Python 3 has entirely replaced Python 2 now, I have updated the Sphinx code in the tutorial to make it Python 3 compatible, and have added some new components to the code to make it look more close to real projects.

It is strongly recommended to watch Brandon Rhodes's Sphinx tutorial session at PyCon 2013, since I have not found any other tutorial videos or blogs are as good as his even though it is year 2020 now. Most of the content he presented is still applicable to Python 3 and the latest Sphinx, and the reStructuredText was covered sufficiently in depth for writing documentations for Sphinx.

This repository would be useful as a reference for documentation with Python 3 and Sphinx, provided that we have taken Brandon Rhodes's Sphinx tutorial session. There is also a short blog post on this on my website.

Files

.
├── docs
│   ├── make.bat
│   ├── Makefile
│   ├── README.md
│   └── source
│       ├── api.rst
│       ├── conf.py
│       ├── examples.rst
│       ├── guide.rst
│       ├── index.rst
│       ├── _static
│       ├── _templates
│       └── tutorial.rst
├── examples
│   ├── 00-create_triangle
│   │   ├── create_triangle.py
│   │   └── README.md
│   └── README.md
├── LICENSE.md
├── README.md
├── requirements.txt
├── setup.py
└── trianglelib
    ├── __init__.py
    ├── shape.py
    ├── tests.py
    └── utils.py

Installation

The trianglelib used for the tutorial has no dependency. But for completeness, we added setuptools and sphinx to our requirements.txt.

To install the dependencies, please run the following command in the terminal.

$ pip install -r requirements.txt

To install the trianglelib, which we would not probably do, please run the following command in the terminal.

$ pip install .

Build Documentations

Please check the README in docs for details.

Publish Documentations

Go to Read the Docs and follow the instructions to publish the documentations. The latest version of the documentation of this repo could be found on TriangleLib's Documentation. Use GitHub tags for version control on Read the Docs.

References

sphinx-python-trianglelib's People

Contributors

leimao 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.