forked from M-Labs/artiq
flake/sphinx: add tikz for diagrams
This commit is contained in:
parent
c0805b9cb9
commit
775aff730e
|
@ -70,7 +70,8 @@ extensions = [
|
||||||
'sphinx.ext.napoleon',
|
'sphinx.ext.napoleon',
|
||||||
'sphinxarg.ext',
|
'sphinxarg.ext',
|
||||||
'sphinxcontrib.wavedrom', # see also below for config
|
'sphinxcontrib.wavedrom', # see also below for config
|
||||||
"sphinxcontrib.jquery",
|
'sphinxcontrib.jquery',
|
||||||
|
'sphinxcontrib.tikz' # see also below for config
|
||||||
]
|
]
|
||||||
|
|
||||||
mathjax_path = "https://m-labs.hk/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"
|
mathjax_path = "https://m-labs.hk/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"
|
||||||
|
@ -326,3 +327,8 @@ texinfo_documents = [
|
||||||
offline_skin_js_path = '_static/default.js'
|
offline_skin_js_path = '_static/default.js'
|
||||||
offline_wavedrom_js_path = '_static/WaveDrom.js'
|
offline_wavedrom_js_path = '_static/WaveDrom.js'
|
||||||
render_using_wavedrompy = True
|
render_using_wavedrompy = True
|
||||||
|
|
||||||
|
# -- Options for sphinxcontrib-tikz ---------------------------------------
|
||||||
|
# tikz_proc_suite = pdf2svg
|
||||||
|
# tikz_transparent = True
|
||||||
|
# these are the defaults
|
17
flake.nix
17
flake.nix
|
@ -309,7 +309,7 @@
|
||||||
inherit (pkgs.texlive)
|
inherit (pkgs.texlive)
|
||||||
scheme-basic latexmk cmap collection-fontsrecommended fncychap
|
scheme-basic latexmk cmap collection-fontsrecommended fncychap
|
||||||
titlesec tabulary varwidth framed fancyvrb float wrapfig parskip
|
titlesec tabulary varwidth framed fancyvrb float wrapfig parskip
|
||||||
upquote capt-of needspace etoolbox booktabs;
|
upquote capt-of needspace etoolbox booktabs pgf pgfplots;
|
||||||
};
|
};
|
||||||
|
|
||||||
artiq-frontend-dev-wrappers = pkgs.runCommandNoCC "artiq-frontend-dev-wrappers" {}
|
artiq-frontend-dev-wrappers = pkgs.runCommandNoCC "artiq-frontend-dev-wrappers" {}
|
||||||
|
@ -344,9 +344,11 @@
|
||||||
version = artiqVersion;
|
version = artiqVersion;
|
||||||
src = self;
|
src = self;
|
||||||
buildInputs = with pkgs.python3Packages; [
|
buildInputs = with pkgs.python3Packages; [
|
||||||
sphinx sphinx_rtd_theme
|
sphinx sphinx_rtd_theme sphinxcontrib-tikz
|
||||||
sphinx-argparse sphinxcontrib-wavedrom
|
sphinx-argparse sphinxcontrib-wavedrom
|
||||||
] ++ [ artiq-comtools.packages.x86_64-linux.artiq-comtools ];
|
] ++ [ latex-artiq-manual artiq-comtools.packages.x86_64-linux.artiq-comtools
|
||||||
|
pkgs.pdf2svg
|
||||||
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export VERSIONEER_OVERRIDE=${artiqVersion}
|
export VERSIONEER_OVERRIDE=${artiqVersion}
|
||||||
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}
|
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}
|
||||||
|
@ -364,9 +366,11 @@
|
||||||
version = artiqVersion;
|
version = artiqVersion;
|
||||||
src = self;
|
src = self;
|
||||||
buildInputs = with pkgs.python3Packages; [
|
buildInputs = with pkgs.python3Packages; [
|
||||||
sphinx sphinx_rtd_theme
|
sphinx sphinx_rtd_theme sphinxcontrib-tikz
|
||||||
sphinx-argparse sphinxcontrib-wavedrom
|
sphinx-argparse sphinxcontrib-wavedrom
|
||||||
] ++ [ latex-artiq-manual artiq-comtools.packages.x86_64-linux.artiq-comtools ];
|
] ++ [ latex-artiq-manual artiq-comtools.packages.x86_64-linux.artiq-comtools
|
||||||
|
pkgs.pdf2svg
|
||||||
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export VERSIONEER_OVERRIDE=${artiq.version}
|
export VERSIONEER_OVERRIDE=${artiq.version}
|
||||||
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}
|
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}
|
||||||
|
@ -408,8 +412,9 @@
|
||||||
packages.x86_64-linux.vivadoEnv
|
packages.x86_64-linux.vivadoEnv
|
||||||
packages.x86_64-linux.vivado
|
packages.x86_64-linux.vivado
|
||||||
packages.x86_64-linux.openocd-bscanspi
|
packages.x86_64-linux.openocd-bscanspi
|
||||||
pkgs.python3Packages.sphinx pkgs.python3Packages.sphinx_rtd_theme
|
pkgs.python3Packages.sphinx pkgs.python3Packages.sphinx_rtd_theme pkgs.pdf2svg
|
||||||
pkgs.python3Packages.sphinx-argparse pkgs.python3Packages.sphinxcontrib-wavedrom latex-artiq-manual
|
pkgs.python3Packages.sphinx-argparse pkgs.python3Packages.sphinxcontrib-wavedrom latex-artiq-manual
|
||||||
|
pkgs.python3Packages.sphinxcontrib-tikz
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LIBARTIQ_SUPPORT=`libartiq-support`
|
export LIBARTIQ_SUPPORT=`libartiq-support`
|
||||||
|
|
Loading…
Reference in New Issue