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 bibliography to footbibliography #13

Merged
merged 5 commits into from
Sep 17, 2023
Merged

Change bibliography to footbibliography #13

merged 5 commits into from
Sep 17, 2023

Conversation

lilyminium
Copy link
Member

@lilyminium lilyminium commented Aug 23, 2023

Fixes #12

Changes made in this Pull Request:

  • Changes bibliography directive to footbibliography

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #13 (41e6699) into main (87290ae) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@lilyminium
Copy link
Member Author

This is more to show what I mean and the content that let me render what's in #12 -- it may make more sense to just have a global bibliography instead.

@orbeckst
Copy link
Member

The RTD build https://readthedocs.org/projects/mdaencore/builds/21702726/ fails with

ModuleNotFoundError: No module named 'mdaencore.cutils'

@orbeckst
Copy link
Member

Building locally make html and having installed with pip install -e .

  1. mdaencore.data.files is not found:

    Failed to import mdaencore.data.files.
    Possible hints:
    * ModuleNotFoundError: No module named 'mdaencore.data.files'
    * AttributeError: module 'mdaencore.data' has no attribute 'files'
    WARNING: [autosummary] failed to import mdaencore.data.files.
    Possible hints:
    * ModuleNotFoundError: No module named 'mdaencore.data.files'
    * AttributeError: module 'mdaencore.data' has no attribute 'files'
    
  2. Some footnote issues

    ~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.rst:38:<autosummary>:1: ERROR: Too many autonumbered footnote references: only 0 corresponding footnotes available.
    ~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.rst:38:<autosummary>:1: ERROR: Unknown target name: "footcite-lindorfflarsen2009".
    

On the plus side, the RTD build is working again.

@@ -8,11 +8,12 @@ dependencies:
- pip

- sphinxcontrib-bibtex=2.5.0
- mdanalysis-sphinx-theme
Copy link
Member

Choose a reason for hiding this comment

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

I forgot to merge main into the branch before editing and had independently moved danalysis-sphinx-theme from pip to conda... and then I grouped it with other sphinx things.

Comment on lines -184 to +185
'python': ('https://docs.python.org/3/', None),
'mdanalysis': ('https://docs.mdanalysis.org/stable/', None),
"python": ('https://docs.python.org/3/', None),
"mdanalysis": ('https://docs.mdanalysis.org/stable/', None),
Copy link
Member

Choose a reason for hiding this comment

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

same here... doubled up on work that was already in main

@lilyminium
Copy link
Member Author

lilyminium commented Sep 17, 2023

@orbeckst I could reproduce the footnote issue but not the missing .data.files -- does that still occur to you with the merge of main?

The footnotes issue was because it was in the first sentence of the module docstring, which was then reproduced in the autosummary table but without a corresponding local bibliography to link to.

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

I generally agree with @lilyminium that a global bibliography makes a lot of sense for this kit. However, the current PR is strictly improvement over the previous approach so let's merge it.

There's the one issue with missing(??) citation in the autosummary generated page

~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.rst:38:<autosummary>:1: ERROR: Too many autonumbered footnote references: only 0 corresponding footnotes available.
~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.rst:38:<autosummary>:1: ERROR: Unknown target name: "footcite-lindorfflarsen2009".

which I don't understand (and I am not a fan of autosummary in general...).

@orbeckst
Copy link
Member

Thanks for fixing the footnote bib!

@orbeckst
Copy link
Member

data files is still missing for me

...
building [html]: targets for 21 source files that are out of date
updating environment: [new config] 21 added, 0 changed, 0 removed
reading sources... [100%] index
WARNING: autodoc: failed to import module 'files' from module 'mdaencore.data'; the following exception was raised:
No module named 'mdaencore.data.files'
looking for now-outdated files... none found
pickling environment... done
checking consistency... ~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.data.rst: WARNING: document isn't included in any toctree
~/MDAnalysis/mdaencore/docs/source/autosummary/mdaencore.data.files.rst: WARNING: document isn't included in any toctree
done
...

@orbeckst
Copy link
Member

If RTD build then please merge whenever you want to @lilyminium .

@lilyminium
Copy link
Member Author

lilyminium commented Sep 17, 2023

Ah you might need to delete the autosummary directory and rebuild docs to get rid of the warning -- mdaencore.data.files was removed as a path, so it wouldn't be included in toctrees anymore, but if you built docs prior to its removal then its rst file would still be lying around.

Oh weird, I don't get the autodoc warning.

@orbeckst
Copy link
Member

I see. I assumed (wrongly) that make clean would be sufficient. But I also had to rm -rf source/autosummary/. Now it worked without issues. Thanks for the tip.

(See, I am justified in not liking autosummary ;-) ).

@orbeckst
Copy link
Member

The setup-miniconda job step timed out for two runners. Maybe change to uses: mamba-org/setup-micromamba@v1 (although that also requires some option changing)... issue for another day.

@lilyminium lilyminium merged commit 5425410 into main Sep 17, 2023
24 checks passed
@lilyminium lilyminium deleted the fix-bib branch September 17, 2023 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bibtex bibliography should be footbibliography
2 participants