Skip to content
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

Change internal links to ref role in user documentation #2214

Merged
merged 14 commits into from
Jan 17, 2022

Conversation

jessica-mitchell
Copy link
Contributor

@jessica-mitchell jessica-mitchell commented Nov 22, 2021

This PR changes nearly all the internal links that use :doc: to :ref:

The main reason is that the :doc: role requires the relative path, and anytime the source file is moved, all links to the file in the documentation need updating.
With the :ref: role, no path is required, but each page needs to include a label to use as a reference.

We are anticipating changes to the organization of the doc source files, and this makes it easier to not have to worry about all mentions of a file.

Every reStructuredText file in userdoc/ got a label. Most* :doc: roles are changed to :ref:.
In addition, many broken links were fixed.
The styleguide is also updated to include the preference for using the :ref: role.

*There are still some :doc: roles in the files, because with everything there are exceptions:
Links to external projects using intersphinx, Python files, Jupyter notebooks, and autogenerated files (models and examples) still use the :doc: role.

During build, Sphinx spits out warnings of "undefined label" when a it can't find the internal reference. These have been checked and should all be resolved.

@jessica-mitchell jessica-mitchell added I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. labels Nov 22, 2021
@jessica-mitchell jessica-mitchell added this to In progress in Documentation via automation Nov 22, 2021
jessica-mitchell and others added 2 commits December 7, 2021 18:23
Co-authored-by: Pooja Babu <75320801+pnbabu@users.noreply.github.com>
@@ -32,7 +32,7 @@ We have compiled a `list of NEST-related peer-reviewed publications <https://ww
we update regularly.

If you have used NEST in your research, let us know!
Don't forget to :doc:`cite NEST <citing-nest>` in your work.
Don't forget to :ref:`cite NEST <cite_nest>` in your work.

Have a talk or poster where you used NEST? `Download our logo <https://github.com/nest/nest-simulator/tree/master/extras/logos>`_!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Have a talk or poster where you used NEST? `Download our logo <https://github.com/nest/nest-simulator/tree/master/extras/logos>`_!
Have a talk or poster where you used NEST? `Download our logo <https://github.com/nest/nest-simulator/tree/master/doc/logos>`_!

doc/userdoc/guides/random_numbers.rst Outdated Show resolved Hide resolved
@jessica-mitchell
Copy link
Contributor Author

@pnbabu @med-ayssar I found some additional broken links in the models directory that I also updated to the ref role

Copy link
Contributor

@pnbabu pnbabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@med-ayssar
Copy link
Contributor

Looks fine to me too.

@stinebuu stinebuu merged commit 39ffec7 into nest:master Jan 17, 2022
Documentation automation moved this from In progress to Done Jan 17, 2022
@jougs jougs changed the title Change internal links to ref role in user documentation Change internal links to ref role in user documentation Jan 21, 2022
@jessica-mitchell jessica-mitchell deleted the add-ref-role-doc branch April 17, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Documentation
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants