generated from pds-data-dictionaries/ldd-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
868 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | ||
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path | ||
--- | ||
|
||
name: Build Sphinx Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'docs/**' | ||
|
||
jobs: | ||
build: # job 1 | ||
name: 'Build HTML Docs' | ||
runs-on: ubuntu-latest | ||
environment: github-pages | ||
if: github.actor != 'pdsen-ci' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install dependencies | ||
run: | | ||
# Install Sphinx | ||
pip install -r docs/requirements.txt | ||
- name: Make Sphinx | ||
id: make | ||
run: | | ||
cd docs | ||
# Make the HTML docs and copy to main | ||
make github | ||
cd .. | ||
- name: Push LDDs to Github | ||
run: | | ||
git config --local user.email "pdsen-ci@jpl.nasa.gov" | ||
git config --local user.name "PDSEN CI Bot" | ||
git add -A . | ||
git commit --allow-empty -m "Auto-generated docs by PDSEN CI Bot" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
branch: gh-pages | ||
force: true | ||
|
||
pdfgen: # job 1 | ||
name: 'Build PDF' | ||
runs-on: ubuntu-latest | ||
environment: main | ||
if: github.actor != 'pdsen-ci' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
|
||
- name: Set up Python 3 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install dependencies | ||
run: | | ||
# Install Sphinx | ||
pip install -r docs/requirements.txt | ||
# Install dependencies for PDF generation | ||
sudo apt install texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk | ||
- name: Make Sphinx | ||
id: make | ||
run: | | ||
cd docs | ||
make latexpdf | ||
cp build/latex/*.pdf . | ||
- name: Push LDDs to Github | ||
run: | | ||
git config --local user.email "pdsen-ci@jpl.nasa.gov" | ||
git config --local user.name "PDSEN CI Bot" | ||
git add -A ./*.pdf | ||
git commit --allow-empty -m "Auto-gen PDF by PDSEN CI Bot" | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | ||
branch: main | ||
force: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
github: | ||
@make clean checklinks html | ||
@find .. -mindepth 1 -maxdepth 1 -type d -not -name "*git*" -not -name "*docs" -exec rm -fr {} \; | ||
@cp -a build/html/. .. | ||
|
||
cleaner: | ||
@make clean | ||
@find .. -mindepth 1 -maxdepth 1 -type d -not -name "*git*" -not -name "*docs" -exec rm -fr {} \; | ||
|
||
.PHONY: help Makefile checklinks | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
|
||
# LINKCHECKDIR = build/linkcheck | ||
|
||
# .PHONY: checklinks | ||
# checklinks: | ||
# $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(LINKCHECKDIR) | ||
# @echo | ||
# @echo "Check finished. Report is in $(LINKCHECKDIR)." |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sphinx==4.5.0 | ||
sphinx-rtd-theme==1.0.0 | ||
gitpython==3.1.9 | ||
sphinxemoji==0.2.0 | ||
myst-parser==0.17.2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* override table width restrictions */ | ||
@media screen and (min-width: 767px) { | ||
|
||
.wy-table-responsive table td { | ||
/* !important prevents the common CSS stylesheets from overriding | ||
this as on RTD they are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
|
||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} | ||
} | ||
|
||
/* replace the copyright to eliminate the copyright symbol enforced by | ||
the ReadTheDocs theme but eschewed by our legal team */ | ||
div[role=contentinfo] { | ||
visibility: hidden; | ||
position: relative; | ||
} | ||
|
||
div[role=contentinfo]:after { | ||
visibility: visible; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
content: "This is a work of the U.S. Government and is not subject to copyright pursuant to 17 USC 105."; | ||
} |
Oops, something went wrong.