Git Product home page Git Product logo

herc-docs-demo's Introduction

docs_pages_workflow

image

Hercules Documentation Demo

  • The /docs directory contains reStructuredText files.
  • Changes commited will trigger automatic Action to build and deploy into the gh-pages branch.
  • Published documentation here
  • PDF and epub downloads available






Original source repoisitory README.md follows

Continuous Documentation: Hosting Read the Docs on GitHub Pages

This repo is a fork-ready base for your project's documentation. It lets you host a sphinx-generated site (with the Read the Docs theme) on GitHub Pages using GitHub Actions.

Continuous Documentation with Read the Docs on GitHub Pages using GitHub Actions

For more information, see this article:

How to use this repo

  1. Fork this repo
  2. On your forked repo, go to the "Actions" tab and click "I understand my workflows, go ahead and enable them" to enable GitHub workflows
  3. On your forked repo, go to the "Settings" tab. Under "GitHub Pages" choose 'gh-pages branch' under "Source"
  4. Make a small change to docs/index.rst
  5. git commit and git push something to trigger your site to be built

Every time you push to github.com on master, github will automatically spin up a container in their cloud to update your documentation.

After you begin to edit the contents of the site, you'll probably also want to customize the following files:

  1. docs/conf.py
  2. The python files in src/
  3. Other .rst files in docs/ as needed

For more details on how this works, see Continuous Documentation: Hosting Read the Docs on GitHub Pages

Demo

The GitHub-Pages-hosted "Hello World" example site built by this repo can be viewed here:

In the wild

The following Githb-Pages-hosted Read the Docs sites have been created by cloning this repo:

Local Iteration

As shown above, you can simply push your changes to GitHub to update your sphinx documentation website.

However, you can also build the site locally on your computer for faster iteration.

Linux

To build the site on Debian Linux, first download some dependencies

sudo apt-get update
sudo apt-get -y install git firefox-esr python3-git python3-sphinx python3-sphinx-rtd-theme

Change into the docs directory of this repo and build the sphinx site with make

cd rtd-github-pages/docs/
make clean
make html

You can view the site (built into the _build/html/ directory) using firefox

firefox-esr _build/html/index.html

License

The contents of this repo are dual-licensed. All code is GPLv3 and all other content is CC-BY-SA.

herc-docs-demo's People

Contributors

gsf600y avatar maltfield avatar fovea1959 avatar foobar2016 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.