Skip to content

Commit ad029de

Browse files
committed
filters: Auto-generate documentation
1 parent 7e752fd commit ad029de

File tree

8 files changed

+487
-47
lines changed

8 files changed

+487
-47
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
- uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ env.PYTHON_VERSION }}
24-
- name: Install Dependencies
24+
- uses: awalsh128/cache-apt-pkgs-action@v1.3.0
25+
with:
26+
packages: texlive-latex-base
27+
version: 1.0
28+
- name: Install Python Dependencies
2529
run: |
2630
python -m pip install --upgrade pip
2731
pip install poetry

.gitignore

Lines changed: 320 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,325 @@ $RECYCLE.BIN/
365365
*.lnk
366366

367367
# End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode,macos,windows,pycharm
368+
369+
# Created by https://www.toptal.com/developers/gitignore/api/latex
370+
# Edit at https://www.toptal.com/developers/gitignore?templates=latex
371+
372+
### LaTeX ###
373+
## Core latex/pdflatex auxiliary files:
374+
*.aux
375+
*.lof
376+
*.log
377+
*.lot
378+
*.fls
379+
*.out
380+
*.toc
381+
*.fmt
382+
*.fot
383+
*.cb
384+
*.cb2
385+
.*.lb
386+
387+
## Intermediate documents:
388+
*.dvi
389+
*.xdv
390+
*-converted-to.*
391+
# these rules might exclude image files for figures etc.
392+
# *.ps
393+
# *.eps
394+
# *.pdf
395+
396+
## Generated if empty string is given at "Please type another file name for output:"
397+
.pdf
398+
399+
## Bibliography auxiliary files (bibtex/biblatex/biber):
400+
*.bbl
401+
*.bcf
402+
*.blg
403+
*-blx.aux
404+
*-blx.bib
405+
*.run.xml
406+
407+
## Build tool auxiliary files:
408+
*.fdb_latexmk
409+
*.synctex
410+
*.synctex(busy)
411+
*.synctex.gz
412+
*.synctex.gz(busy)
413+
*.pdfsync
414+
415+
## Build tool directories for auxiliary files
416+
# latexrun
417+
latex.out/
418+
419+
## Auxiliary and intermediate files from other packages:
420+
# algorithms
421+
*.alg
422+
*.loa
423+
424+
# achemso
425+
acs-*.bib
426+
427+
# amsthm
428+
*.thm
429+
430+
# beamer
431+
*.nav
432+
*.pre
433+
*.snm
434+
*.vrb
435+
436+
# changes
437+
*.soc
438+
439+
# comment
440+
*.cut
441+
442+
# cprotect
443+
*.cpt
444+
445+
# elsarticle (documentclass of Elsevier journals)
446+
*.spl
447+
448+
# endnotes
449+
*.ent
450+
451+
# fixme
452+
*.lox
453+
454+
# feynmf/feynmp
455+
*.mf
456+
*.mp
457+
*.t[1-9]
458+
*.t[1-9][0-9]
459+
*.tfm
460+
461+
#(r)(e)ledmac/(r)(e)ledpar
462+
*.end
463+
*.?end
464+
*.[1-9]
465+
*.[1-9][0-9]
466+
*.[1-9][0-9][0-9]
467+
*.[1-9]R
468+
*.[1-9][0-9]R
469+
*.[1-9][0-9][0-9]R
470+
*.eledsec[1-9]
471+
*.eledsec[1-9]R
472+
*.eledsec[1-9][0-9]
473+
*.eledsec[1-9][0-9]R
474+
*.eledsec[1-9][0-9][0-9]
475+
*.eledsec[1-9][0-9][0-9]R
476+
477+
# glossaries
478+
*.acn
479+
*.acr
480+
*.glg
481+
*.glo
482+
*.gls
483+
*.glsdefs
484+
*.lzo
485+
*.lzs
486+
*.slg
487+
*.slo
488+
*.sls
489+
490+
# uncomment this for glossaries-extra (will ignore makeindex's style files!)
491+
# *.ist
492+
493+
# gnuplot
494+
*.gnuplot
495+
*.table
496+
497+
# gnuplottex
498+
*-gnuplottex-*
499+
500+
# gregoriotex
501+
*.gaux
502+
*.glog
503+
*.gtex
504+
505+
# htlatex
506+
*.4ct
507+
*.4tc
508+
*.idv
509+
*.lg
510+
*.trc
511+
*.xref
512+
513+
# hyperref
514+
*.brf
515+
516+
# knitr
517+
*-concordance.tex
518+
# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
519+
# *.tikz
520+
*-tikzDictionary
521+
522+
# listings
523+
*.lol
524+
525+
# luatexja-ruby
526+
*.ltjruby
527+
528+
# makeidx
529+
*.idx
530+
*.ilg
531+
*.ind
532+
533+
# minitoc
534+
*.maf
535+
*.mlf
536+
*.mlt
537+
*.mtc[0-9]*
538+
*.slf[0-9]*
539+
*.slt[0-9]*
540+
*.stc[0-9]*
541+
542+
# minted
543+
_minted*
544+
*.pyg
545+
546+
# morewrites
547+
*.mw
548+
549+
# newpax
550+
*.newpax
551+
552+
# nomencl
553+
*.nlg
554+
*.nlo
555+
*.nls
556+
557+
# pax
558+
*.pax
559+
560+
# pdfpcnotes
561+
*.pdfpc
562+
563+
# sagetex
564+
*.sagetex.sage
565+
*.sagetex.py
566+
*.sagetex.scmd
567+
568+
# scrwfile
569+
*.wrt
570+
571+
# svg
572+
svg-inkscape/
573+
574+
# sympy
575+
*.sout
576+
*.sympy
577+
sympy-plots-for-*.tex/
578+
579+
# pdfcomment
580+
*.upa
581+
*.upb
582+
583+
# pythontex
584+
*.pytxcode
585+
pythontex-files-*/
586+
587+
# tcolorbox
588+
*.listing
589+
590+
# thmtools
591+
*.loe
592+
593+
# TikZ & PGF
594+
*.dpth
595+
*.md5
596+
*.auxlock
597+
598+
# titletoc
599+
*.ptc
600+
601+
# todonotes
602+
*.tdo
603+
604+
# vhistory
605+
*.hst
606+
*.ver
607+
608+
# easy-todo
609+
*.lod
610+
611+
# xcolor
612+
*.xcp
613+
614+
# xmpincl
615+
*.xmpi
616+
617+
# xindy
618+
*.xdy
619+
620+
# xypic precompiled matrices and outlines
621+
*.xyc
622+
*.xyd
623+
624+
# endfloat
625+
*.ttt
626+
*.fff
627+
628+
# Latexian
629+
TSWLatexianTemp*
630+
631+
## Editors:
632+
# WinEdt
633+
*.bak
634+
*.sav
635+
636+
# Texpad
637+
.texpadtmp
638+
639+
# LyX
640+
*.lyx~
641+
642+
# Kile
643+
*.backup
644+
645+
# gummi
646+
.*.swp
647+
648+
# KBibTeX
649+
*~[0-9]*
650+
651+
# TeXnicCenter
652+
*.tps
653+
654+
# auto folder when using emacs and auctex
655+
./auto/*
656+
*.el
657+
658+
# expex forward references with \gathertags
659+
*-tags.tex
660+
661+
# standalone packages
662+
*.sta
663+
664+
# Makeindex log files
665+
*.lpz
666+
667+
# xwatermark package
668+
*.xwm
669+
670+
# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
671+
# option is specified. Footnotes are the stored in a file with suffix Notes.bib.
672+
# Uncomment the next line to have this generated file ignored.
673+
#*Notes.bib
674+
675+
### LaTeX Patch ###
676+
# LIPIcs / OASIcs
677+
*.vtc
678+
679+
# glossaries
680+
*.glstex
681+
682+
# End of https://www.toptal.com/developers/gitignore/api/latex
683+
684+
368685
.idea
369686
log
370-
docs/source/reference/_autosummary/*
687+
**/_autosummary
688+
*.pdf
689+
/tex

docs/source/conf.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,19 @@
99
# add these directories to sys.path here. If the directory is relative to the
1010
# documentation root, use os.path.abspath to make it absolute, like shown here.
1111
#
12-
import os
1312

13+
import os
14+
import sys
1415
from datetime import datetime
1516

17+
sys.path.insert(0, os.path.abspath("."))
18+
19+
from filters import generate_filters_docs
20+
21+
generate_filters_docs()
22+
23+
sys.path.insert(0, os.path.abspath("../.."))
24+
1625
# -- Project information -----------------------------------------------------
1726
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1827

@@ -32,6 +41,7 @@
3241
"sphinxext.opengraph",
3342
"sphinx_copybutton",
3443
"sphinx_design",
44+
"sphinxcontrib.pdfembed",
3545
"myst_parser",
3646
]
3747
autosummary_generate = True

0 commit comments

Comments
 (0)