-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for "add_additional_resource" and other fixes #233
Changes from 12 commits
2bc2ca8
674a872
e9a4bde
666f799
2156317
2dbb58e
9ddc488
8f1a167
1aea7b2
dfa0a89
a57b92f
db27195
c5f19db
f4e311c
77cc768
7d829b0
f11eb35
0d77f11
497d462
8b318b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
m2r2==0.3.3 | ||
Sphinx<7 | ||
sphinx_rtd_theme | ||
docutils==0.19 | ||
mistune<2.0.0 | ||
sphinx-mdinclude |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ If you would like to develop the code, you need to install the package from the | |
:: | ||
|
||
cd $SOMEPATH | ||
git clone git@github.com:HEPData/hepdata_lib.git | ||
git clone https://github.com/HEPData/hepdata_lib.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Switching to HTTPS is fine, though I like poking people towards using SSH when possible. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess it's personal preference whether to use HTTPS or SSH, so I've given both URLs and linked to the GitHub documentation. I just changed to HTTPS because that's what I use myself. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd also prefer to keep SSH here |
||
|
||
workon myhepdata # activate virtual environment! | ||
pip install -e $SOMEPATH/hepdata_lib | ||
|
@@ -92,6 +92,15 @@ You can always activate the virtual environment in another shell by calling the | |
workon hepdata_git | ||
python myscript.py # Execute script using development branch | ||
|
||
Alternatively, if you don't want to install the additional virtualenv_ and virtualenvwrapper_ packages, you can simply | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we're on this topic, I would actually prefer to have this the default since most people will not have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree, I think the text on |
||
use the venv_ module from the Python standard library. | ||
|
||
:: | ||
|
||
python3 -m venv env | ||
source env/bin/activate | ||
|
||
.. _venv: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment | ||
|
||
Setup on lxplus with CMSSW | ||
-------------------------- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason you're changing this? Relative links would also work in branches whereas here you hard-code them to
master
. I'd prefer to keep things as they are.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that the
README.md
file is rendered in two different places. Firstly, on the main page of the repo (https://github.com/HEPData/hepdata_lib#further-examples) where it displays fine. But theREADME.md
file is also converted to RST format for rendering on Read the Docs (https://hepdata-lib.readthedocs.io/en/latest/README.html#further-examples). This is currently broken. The relative links do not work giving "404 Not Found" from Read the Docs. The Binder images/links also do not render properly. The Read the Docs build gives error/warning messages like:These messages are also apparent when running Sphinx locally. My fixes are a compromise to get rid of these error messages and ensure an acceptable rendering on both GitHub and Read the Docs. Admittedly, the spacing now looks worse than before on GitHub, but it was the best I could do. Now I've enabled
fail_on_warning: true
in the Read the Docs configuration, such error messages will cause the build to fail rather than being hidden away.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to improve the layout of the "Further examples" section in my latest commit. Now the Binder images/links appear on the same line as the text on GitHub (as before). On Read the Docs, the Binder images/links appear on the line below the text. The two line breaks
<br/><br/>
are needed to increase the separation after each bullet point because otherwise the Binder images/links appear immediately above the text of the next bullet point.