You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@drybjed Heard someone whispering about avoiding redundancy … 😉
Investigate how the global.rst file can be put into a central place in debops/docs. sphinx-debops-role-build can still copy the file as needed into place to allow to build docs for one role.
Just a little detail when using subdirectories in docs/.
To allow local hyperlink definitions, I did go with a two staged include.
E. g. includes/all.rst is used for doc files. includes/all.rst itself includes includes/global.rst, this only works when includes/all.rst was included from docs/.
To still support this. I would suggest a little hack which consists of creating includes/all_from_subdir.rst which includes the global.rst relative to the subdir. When a third dir level is needed, I would suggest includes/all_from_subsubdir.rst (similar to \subsubsection in LaTeX). Example usage check: https://github.com/debops/debops-playbooks/
Hm, readthedocs.org does currently not run the Makefile at all. This means that the global.rst file does not get injected into the submodules at docs build time.
Possible solution:
Self hosted docs and locally build them using the Makefile.
Execute the nessesary scripts from conf.py, I guess this way, also readthedocs.org would execute shell commands. Otherwise, rewrite linkincludes in Python.
Activity
Added custom delayed paths and updated to latest role standards.
ypid commentedon Jul 7, 2016
@drybjed Heard someone whispering about avoiding redundancy … 😉
Investigate how the
global.rstfile can be put into a central place in debops/docs. sphinx-debops-role-build can still copy the file as needed into place to allow to build docs for one role.Support global link definitions.
Support global link definitions.
Fix test when global.rst include file in docs is used.
Removed includes/global.rst as it gets injected at docs build time.
ypid commentedon Jul 17, 2016
Just a little detail when using subdirectories in
docs/.To allow local hyperlink definitions, I did go with a two staged include.
E. g.
includes/all.rstis used for doc files.includes/all.rstitself includesincludes/global.rst, this only works whenincludes/all.rstwas included fromdocs/.To still support this. I would suggest a little hack which consists of creating
includes/all_from_subdir.rstwhich includes theglobal.rstrelative to the subdir. When a third dir level is needed, I would suggestincludes/all_from_subsubdir.rst(similar to\subsubsectionin LaTeX). Example usage check: https://github.com/debops/debops-playbooks/Use global.rst hyperlink definition.
ypid commentedon Jul 17, 2016
Hm, readthedocs.org does currently not run the Makefile at all. This means that the
global.rstfile does not get injected into the submodules at docs build time.Possible solution:
conf.py, I guess this way, also readthedocs.org would execute shell commands. Otherwise, rewrite linkincludes in Python.Docs currently work, only without the hyperlinks: http://docs.debops.org/en/latest/debops-playbooks/docs/changelog.html#id123
ypid commentedon Jul 18, 2016
Now, that’s what I am talking about: http://docs.debops.org/en/latest/debops-playbooks/docs/changelog.html
global.rstfile gets injected into each submodule at build time.Docs build: https://readthedocs.org/projects/debops/builds/4211003/
Fixed by: #178
Utilize the full power of the DebOps docs format
Removed includes/global.rst as it gets injected at docs build time.
Update documentation according to latest guidelines