Giter Club home page Giter Club logo

pages's Introduction

Sphinx to GitHub Pages V2

https://img.shields.io/github/stars/sphinx-notes/pages.svg?style=social&label=Star&maxAge=2592000

Help you deploying your Sphinx documentation to Github Pages.

Usage

This action only help you build and commit Sphinx documentation to gh-pages, branch. So we need some other actions:

  • action/setup-python for installing python and pip
  • actions/checkout for checking out git repository
  • ad-m/github-push-action for pushing site to remote

So your workflow file should be:

name: Pages
on:
  push:
    branches:
    - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/setup-python@v2
    - uses: actions/checkout@master
      with:
        fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
    - name: Build and Commit
      uses: sphinx-notes/pages@v2
    - name: Push changes
      uses: ad-m/github-push-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: gh-pages

Inputs

Input Default Required Description
documentation_path './docs' false Relative path under repository to documentation source files
target_branch 'gh-pages' false Git branch where assets will be deployed
target_path '.' false Directory in Github Pages where Sphinx Pages will be placed
repository_path '.' false Relative path under $GITHUB_WORKSPACE to place the repository. You not need to set this Input unless you checkout the repository to a custom path
requirements_path '' false Relative path under $repository_path to pip requirements file
sphinx_version '' false Custom version of Sphinx

Examples

The following repository's pages are built by this action:

You can found the workflow file in their repository.

Tips

Copy extra files to site

Use Sphinx confval html_extra_path.

pages's People

Contributors

silverrainz avatar djperrefort avatar rffontenelle avatar toniher avatar

Watchers

James Cloos 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.