-
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
18 changed files
with
132 additions
and
11,091 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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -1,36 +1,12 @@ | ||
name: CI | ||
|
||
"on": [push, pull_request] | ||
'on': [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # full history for metadata | ||
submodules: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Python install | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install "ltd-conveyor<2.0.0" | ||
- name: Build | ||
run: | | ||
make html | ||
- name: Upload | ||
if: ${{ github.event_name == 'push' }} | ||
env: | ||
LTD_PASSWORD: ${{ secrets.LTD_PASSWORD }} | ||
LTD_USERNAME: ${{ secrets.LTD_USERNAME }} | ||
run: | | ||
ltd upload --gh --dir _build/html --product sqr-056 | ||
call-workflow: | ||
uses: lsst-sqre/rubin-sphinx-technote-workflows/.github/workflows/ci.yaml@v1 | ||
with: | ||
handle: sqr-056 | ||
secrets: | ||
ltd_username: ${{ secrets.LTD_USERNAME }} | ||
ltd_password: ${{ secrets.LTD_PASSWORD }} |
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
_build/ | ||
.technote/ | ||
.tox/ | ||
venv/ | ||
.venv/ |
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,7 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
# - id: trailing-whitespace | ||
- id: check-yaml | ||
- id: check-toml |
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 |
---|---|---|
@@ -1,58 +1,26 @@ | ||
# Makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line. | ||
SPHINXOPTS = -n | ||
SPHINXBUILD = sphinx-build | ||
PAPER = | ||
BUILDDIR = _build | ||
|
||
# User-friendly check for sphinx-build | ||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) | ||
$(error The '$(SPHINXBUILD)' command was not found. Try 'running pip install -r requirements.txt' to get the necessary Python dependencies.) | ||
endif | ||
|
||
# Internal variables. | ||
PAPEROPT_a4 = -D latex_paper_size=a4 | ||
PAPEROPT_letter = -D latex_paper_size=letter | ||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||
# the i18n builder cannot share the environment and doctrees with the others | ||
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . | ||
|
||
.PHONY: help clean html epub changes linkcheck refresh-bib | ||
|
||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " html to make standalone HTML files" | ||
@echo " epub to make an epub" | ||
@echo " linkcheck to check all external links for integrity" | ||
@echo " refresh-bib to update LSST bibliographies in lsstbib/" | ||
|
||
clean: | ||
rm -rf $(BUILDDIR)/* | ||
.PHONY: | ||
init: | ||
pip install tox pre-commit | ||
pre-commit install | ||
|
||
.PHONY: | ||
html: | ||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html | ||
@echo | ||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html." | ||
tox run -e html | ||
|
||
epub: | ||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub | ||
@echo | ||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub." | ||
.PHONY: | ||
lint: | ||
tox run -e lint,linkcheck | ||
|
||
changes: | ||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes | ||
@echo | ||
@echo "The overview file is in $(BUILDDIR)/changes." | ||
.PHONY: | ||
add-author: | ||
tox run -e add-author | ||
|
||
linkcheck: | ||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck | ||
@echo | ||
@echo "Link check complete; look for any errors in the above output " \ | ||
"or in $(BUILDDIR)/linkcheck/output.txt." | ||
.PHONY: | ||
sync-authors: | ||
tox run -e sync-authors | ||
|
||
refresh-bib: | ||
refresh-lsst-bib -d lsstbib | ||
@echo | ||
@echo "Commit the new bibliographies: git add lsstbib && git commit -m \"Update bibliographies.\"" | ||
.PHONY: | ||
clean: | ||
rm -rf _build | ||
rm -rf .technote | ||
rm -rf .tox |
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 |
---|---|---|
@@ -1,26 +1,4 @@ | ||
#!/usr/bin/env python | ||
# | ||
# Sphinx configuration file | ||
# see metadata.yaml in this repo to update document-specific metadata | ||
# See the Documenteer docs for how to customize conf.py: | ||
# https://documenteer.lsst.io/technotes/ | ||
|
||
import os | ||
from documenteer.sphinxconfig.technoteconf import configure_technote | ||
|
||
# Ingest settings from metadata.yaml and use documenteer's configure_technote() | ||
# to build a Sphinx configuration that is injected into this script's global | ||
# namespace. | ||
metadata_path = os.path.join(os.path.dirname(__file__), 'metadata.yaml') | ||
with open(metadata_path, 'r') as f: | ||
confs = configure_technote(f) | ||
g = globals() | ||
g.update(confs) | ||
|
||
# Add intersphinx inventories as needed | ||
# http://www.sphinx-doc.org/en/stable/ext/intersphinx.html | ||
# Example: | ||
# | ||
# intersphinx_mapping['python'] = ('https://docs.python.org/3', None) | ||
|
||
html_css_files = [ | ||
'css/fe-table.css', | ||
] | ||
from documenteer.conf.technote import * # noqa F401 F403 |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.