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

Documentation #7

Open
3 of 4 tasks
apmoore1 opened this issue Oct 8, 2021 · 2 comments
Open
3 of 4 tasks

Documentation #7

apmoore1 opened this issue Oct 8, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@apmoore1
Copy link
Member

apmoore1 commented Oct 8, 2021

Create a documentation site. At the moment the requirements are:

  • Has an API section which is generated from the doc strings. I think the pydoc-markdown tool would be good for this. The AllenNLP library uses this tool.
  • A site that can be expanded so that it contains more than an API section. I think Docusaurus would be a good tool for this, as pydoc-markdown integrates with this tool. Additionally as it is based around react and markdown we are keeping the vast majority of the documentation to one language, which is markdown.
  • The contributing page needs a good example on how to write documentation strings
  • Add cross reference code to the pydoc-markdown script

I think the doctest tool, which is in the standard python library, could be really useful to test example doc strings.

Lastly I think spaCy has a really good example of a style guide for documentation.

@apmoore1 apmoore1 added the documentation Improvements or additions to documentation label Oct 8, 2021
apmoore1 added a commit that referenced this issue Oct 12, 2021
@apmoore1
Copy link
Member Author

Add cross reference code to the pydoc-markdown script, an example of this can be found in the AllenNLP code base. By having this cross reference code it will allow users to click on custom classes/functions/modules in the documentation and be sent to the relevant documentation.

@apmoore1
Copy link
Member Author

This I think would be the best plugin for performing search on the documentation site: https://github.com/lelouch77/docusaurus-lunr-search

apmoore1 added a commit that referenced this issue Oct 18, 2021
apmoore1 added a commit that referenced this issue Oct 18, 2021
apmoore1 added a commit that referenced this issue Oct 18, 2021
apmoore1 added a commit that referenced this issue Oct 18, 2021
apmoore1 added a commit that referenced this issue Oct 18, 2021
apmoore1 added a commit that referenced this issue Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant