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

Set up documentation #59

Merged
merged 19 commits into from
Oct 17, 2023
Merged

Set up documentation #59

merged 19 commits into from
Oct 17, 2023

Conversation

aazuspan
Copy link
Contributor

@aazuspan aazuspan commented Sep 29, 2023

This would close #5 by setting up documentation for sknnr using mkdocs.

@grovduck This might be a little premature, but I was excited to try out mkdocs (big fan so far!), and I figured having the docs in place will make things easier once we start digging into #10. I'm considering this an early prototype, as there's still tons of room to adjust the layout, visuals, and (especially) content.

I moved the developer guide into docs/pages/contributing.md and added some documentation-specific info there. The most important thing is to run hatch run docs:serve to start a live-reloading server where you can preview the docs.

Guides

This uses mkdocs for the core functionality, mkdocstrings to generate the API reference from docstrings, and mkdocs-material for the theme, which adds a lot of nice additional functionality. The mkdocstrings guide details the features and some of the config options for generating the API reference. I suspect once we start getting more complete docstrings, it may become more apparent how we want to set that up. The mkdocs-material config guide has a lot of info on customizing the site appearance and functionality. The mkdocs config guide also has some good info on markdown extensions and plugins that might be of interest. I definitely haven't done a comprehensive read through any of those guides, so if you find anything cool that's worth adding, feel free to make changes!

Content

I wanted to rough out the content just to give us a starting point, but as the domain expert I'm hoping you can rewrite and flesh things out as needed. Feel free to modify anything I wrote! My assumption is that this is being written for an audience that's already familiar with sklearn so we don't necessarily need to dive into the technical basics, but I'm not as sure about how much detail on the stats to include. I don't think it would hurt to discuss how the estimators work, but we could also just point to the relevant papers.

ReadTheDocs

You can see the RTD build for this PR here, and it should update whenever we push a new commit. Once this gets merged into main, RTD will build that and we'll have a stable docs page. You can track build status here. Currently I'm the RTD maintainer for the project, but if you want to create an RTD account (I just login with my Github), I can add you as a maintainer, which would allow you to manually trigger builds and access project settings.

@aazuspan aazuspan added the documentation Improvements or additions to documentation label Sep 29, 2023
@aazuspan aazuspan added this to the 0.1.0 milestone Sep 29, 2023
@aazuspan aazuspan self-assigned this Sep 29, 2023
README.md Outdated Show resolved Hide resolved
docs/abbreviations.md Outdated Show resolved Hide resolved
docs/mkdocs.yml Show resolved Hide resolved
docs/mkdocs.yml Outdated Show resolved Hide resolved
docs/pages/contributing.md Outdated Show resolved Hide resolved
docs/pages/usage.md Show resolved Hide resolved
docs/pages/usage.md Outdated Show resolved Hide resolved
docs/pages/usage.md Show resolved Hide resolved
docs/pages/usage.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@grovduck
Copy link
Member

grovduck commented Oct 2, 2023

The most important thing is to run hatch docs:serve to start a live-reloading server where you can preview the docs

Is this supposed to be hatch run docs:serve? I think so, but didn't want to edit if I did something wrong.

@aazuspan
Copy link
Contributor Author

aazuspan commented Oct 2, 2023

Yes, good catch! hatch run docs:serve is right.

Copy link
Member

@grovduck grovduck left a comment

Choose a reason for hiding this comment

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

Hey @aazuspan, this is a very impressive first cut. Thank you for putting so much effort into it. mkdocs looks really intuitive ... I love the YAML config to build the site. It's much more satisfying to write documentation if it's formatted nicely right from the start!

I've responded to some, but not all, of your comments below. It sounds like I need to take a cut at edits to some of the content, which I'm happy to do and hopefully that will address most of your comments. Would you prefer that I commit those directly on this branch or send you edits so that you can incorporate? I'm guessing the former, but wanted to make sure.

README.md Outdated Show resolved Hide resolved
docs/abbreviations.md Outdated Show resolved Hide resolved
docs/mkdocs.yml Outdated Show resolved Hide resolved
docs/mkdocs.yml Show resolved Hide resolved
docs/mkdocs.yml Show resolved Hide resolved
docs/pages/contributing.md Show resolved Hide resolved
docs/pages/index.md Outdated Show resolved Hide resolved
docs/pages/index.md Outdated Show resolved Hide resolved
docs/pages/index.md Outdated Show resolved Hide resolved
docs/pages/usage.md Show resolved Hide resolved
@grovduck
Copy link
Member

grovduck commented Oct 2, 2023

Currently I'm the RTD maintainer for the project, but if you want to create an RTD account (I just login with my Github), I can add you as a maintainer, which would allow you to manually trigger builds and access project settings.

I might need a bit more guidance on this point. It sounds like this would mostly be configuration of RTD? I'm happy to be added, but I'm pretty sure I'll have you drive the RTD side of things. I've just signed up on RTD using my Github credentials (username: grovduck).

@aazuspan
Copy link
Contributor Author

aazuspan commented Oct 3, 2023

It sounds like I need to take a cut at edits to some of the content, which I'm happy to do and hopefully that will address most of your comments. Would you prefer that I commit those directly on this branch or send you edits so that you can incorporate? I'm guessing the former, but wanted to make sure.

The former would be great, thanks! I'll co-assign you :)

I might need a bit more guidance on this point. It sounds like this would mostly be configuration of RTD? I'm happy to be added, but I'm pretty sure I'll have you drive the RTD side of things. I've just signed up on RTD using my Github credentials (username: grovduck).

Perfect, I invited you as a maintainer. There shouldn't really be anything either of us need to do now that it's set up - in my experience with past projects, I only ever have to visit RTD if the docs build fails for some reason, and anyone can access those logs. But I'll feel a little better knowing you have admin access if needed!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@grovduck
Copy link
Member

grovduck commented Oct 4, 2023

Sorry, I found a few mistakes that I had put in with my edits, so I've fixed and committed those.

aazuspan and others added 2 commits October 4, 2023 11:29
Co-authored-by: Matt Gregory <matt.gregory@oregonstate.edu>
@grovduck
Copy link
Member

grovduck commented Oct 5, 2023

It feels like you're getting really close on this one. I think I've responded to all the outstanding issues/questions but let me know if I've missed something. Otherwise, LGTM!

I just realized this is possible! No longer need to worry about
keeping the numbering consistent when footnotes are added/removed.
Co-authored by: Matt Gregory <matt.gregory@oregonstate.edu>
@aazuspan aazuspan marked this pull request as ready for review October 17, 2023 19:50
@aazuspan
Copy link
Contributor Author

Looks like everything's resolved, so I'll go ahead and merge!

@aazuspan aazuspan merged commit e112c2c into main Oct 17, 2023
11 checks passed
@aazuspan aazuspan deleted the docs branch October 17, 2023 19:52
@aazuspan
Copy link
Contributor Author

The docs are live! Good teamwork getting this one put together!

https://sknnr.readthedocs.io/en/latest/

Unfortunately/unsurprisingly the absolute links to the docs in the README are broken, but that'll be an easy fix at least

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

Successfully merging this pull request may close these issues.

Set up docs
2 participants