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
It would be nice to permit users to run shell scripts before a build, e.g. I need to use sed linux command to substitute a path in a file before the building process, so that a relative image can be properly load
Expected Result
Maybe a new section in the .yml called script or before-script could be added, like the Travis or GitLab ones:
version: 2before-script:
- sed -i "s/path/new_path/1" file.md # or directly call sh substitute.shsphinx:
builder: htmlfail_on_warning: falseconfiguration: docs/source/conf.pyformats: allpython:
version: 3.7install:
- requirements: docs/requirements.txt
- method: setuptoolspath: .
Actual Result
I think I can come up with a Pythonic solution involving running a function in the sphinx conf.py, but there maybe would be cases in which the python solution could nont be affordable
The text was updated successfully, but these errors were encountered:
Details
It would be nice to permit users to run shell scripts before a build, e.g. I need to use
sed
linux command to substitute a path in a file before the building process, so that a relative image can be properly loadExpected Result
Maybe a new section in the .yml called
script
orbefore-script
could be added, like the Travis or GitLab ones:Actual Result
I think I can come up with a Pythonic solution involving running a function in the sphinx conf.py, but there maybe would be cases in which the python solution could nont be affordable
The text was updated successfully, but these errors were encountered: