cascode-labs / build-sphinx-action Goto Github PK
View Code? Open in Web Editor NEWA GitHub action to build Sphinx documentation
License: MIT License
A GitHub action to build Sphinx documentation
License: MIT License
We have several projects that have Sphinx documentation. We would like to have those docs easily built for each release.
This action should build the sphinx documentation in the project's documentation folder. Its structure should be modelled after build-conda-action.
Some of our smaller projects only need a short set of documentation. A README file should be sufficient, but not everyone has access to our GitHub account to access it. It would be nice to be able to easily convert the readme file into a simple one page html site.
If the sphinx docs folder doesn't exist, then the action should create a simple one based on a simple conf.py contained in the action. It should run the quickstart and then copy over the readme and basic conf.py to generate the docs.
We'd like to easily publish to GitHub pages.
Include the option to release to GitHub pages. There are several different ways to do this but we can document the supported method and how to set up your repo settings to be compatible.
build-sphinx-action/action.yml
Lines 128 to 131 in 6228cef
The action assumes the Sphinx output directory is the default (build
). Setting it to something different in the Makefile within the docs
directory or in the Action environment results in a warning. In my case, I have it set to _build
.
Warning: No files were found with the provided path: docs/build/html. No artifacts will be uploaded.
Steps to reproduce the behavior:
Makefile
with custom BUILDDIR
build succeeded, 107 warnings.
The HTML pages are in _build/html.
Run actions/upload-artifact@v2
Warning: No files were found with the provided path: docs/build/html. No artifacts will be uploaded.
The Makefile variable should be read.
Add any other context about the problem here.
I'd like to be able to control the conda environment name used for the build environment
Add an input, conda_build_env_name, to specify the environment name. It will still use the same default name if this input is left as the default.
Previously it always set it to ${repo_name}-build-docs
We would like to decrease the time it takes to build the documentation.
We can reduce the time it takes to update or create the Conda build environment by using Mamba instead of the regular conda when mamba is available.
If need to further improve the build speed we could:
Right now the yml file is a requirement for the action. We want to remove this requirement and have good defaults that are within this action's repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.