-
Notifications
You must be signed in to change notification settings - Fork 68
Mkdocs and GitHub Pages for documentation #160
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
Comments
@caleb531 @eliotwrobson If you guys are interested, it looks like I will have time to do the whole mkdocs/materials setup and rewrite tonight. So please let me know if this is interesting 👍 |
@lewiuberg That could definitely be a nicer experience for browsing documentation. @eliotwrobson What do you think? |
I'm on board, I say go for it!! @lewiuberg we're still waiting on another big PR before v8, it should be no trouble to get this in as part of that release. |
Hi again @caleb531 and @eliotwrobson! I've made a starting point for the new documentation, and will continue to work on it. It's a bit late here now, so I will probably continue tomorrow. If you want to have a look at it so far just Clone the repo: git clone https://github.com/lewiuberg/automata/tree/mkdocs Install the dependencies: pip install -r requirements.dev.txt Run the server: mkdocs serve And then go the local site: http://127.0.0.1:8000/ |
@lewiuberg The clone command should actually be: git clone https://github.com/lewiuberg/automata.git
cd automata
git checkout mkdocs But thank you for this! Will take a full look at this within the next few days (busy weekend for me 😅) |
@lewiuberg So... I got sidetracked, but I am finally testing this out now. A few observations: One requirements file to rule them allSince we have explicit library dependencies managed via API Docs link in README navigates user to GitHubAt the end of the main README, I have a link to the index page for the API documentation. However, when I click this, I am taken out of the mkdocs website and redirected to the Automata API docs on GitHub. Since mkdocs are meant to replace the API docs on GitHub, I suppose the obvious solution is to simply update the README to point that link to mkdocs instead of GitHub. And if we're going to do that, we should include the Migration Guide in mkdocs as well (since that is linked to from the README and relates to the API). ![]() Warnings when runningWhen I set everything up and run I suppose the solution to the aforementioned issue would be to remove these links, since the sidebar navigation would be available instead. ![]()
cc @eliotwrobson (let me know if you have any thoughts on these things!) |
Yeah! As I said, "starting point", there are still loads of my personal links as well that have to go. I used my personal template project. I just wanted to know if you liked the overall theme etc, before I move forward cleaning up and polish the content. |
@lewiuberg Gotcha! I think the theme is generally fine. Only comment I might have is that I think the navigation feels a bit tucked away in the sidebar. I wish it were more in-sight and in-mind. But maybe that's just the way all the mkdocs themes are. Please let me know if I'm wrong! |
Just as a heads up, as we are looking to submit this package to PyOpenSci, one of the requirements for submission there is having the docs on a separate site, as we are trying to do in this issue (see comment in the presubmission inquiry here: pyOpenSci/software-submission#135 (comment)). In particular, the PyOpenSci documentation guidelines are listed here: https://www.pyopensci.org/python-package-guide/documentation/index.html. Just something to keep in mind as work continues on this issue. There are a few other things that need to be closed out before the PyOpenSci submission, so no rush. Thanks again @lewiuberg for your initial work here! cc @caleb531 |
I'll try to find some time to contribute more on this 👍🏻 |
@lewiuberg Since we closed out the JOSS review, I was wondering if you had any objections to me creating a feature branch based off of your initial work here? That way, we can all submit smaller PRs to the feature branch and work on it incrementally. @caleb531 any thoughts? |
@eliotwrobson That sounds good to me. Also, I was thinking that we could perhaps have the documentation site hosted on GitHub Pages in this repository or something. |
That sounds reasonable. I think that's what the changes on @\lewiuberg's branch do, so it should be straightforward to set that up. |
@caleb531 new branch is here https://github.com/caleb531/automata/tree/docs_rework Not quite sure how to set this up as a github page that's a separate site, but I can try to start editing the text at some point. |
Are you going to get a domain and "hook" that up to the GitHub page? |
Are you going to get a domain and "hook" that up to the GitHub page?
@lewiuberg Possibly, although I don't think the documentation site necessarily needs a domain (since it hasn't had one so far).
|
Another note, since we also have to write docstrings for everything, I think we should use a docstrings API plugin for mkdocs: https://mkdocstrings.github.io/ |
I dont mind that you open a feature branch. Sorry for not contributing more. In the hospital with my eldest son. I'll contribute more when he is better. |
@lewiuberg no worries and hope all is well with you! And thanks again for your contributions so far 🙂 And awesome that it works! It would be great if you opened a PR adding it to the feature branch (even if nothing has been changed yet with docstrings, I'm not even sure how to set up plugins so it would be a help 😅). |
Hi! Have a look at this PR #180 I have to go to the hospital now, but I will check later. Please tell me which branch if this was the wrong branch @eliotwrobson. At bit hectic here now :) |
Hey guys, just an update on this. Made a few pushes to the docs branch here: https://github.com/caleb531/automata/tree/docs_rework I think I've gotten things looking reasonably well with the automated generation from docstrings. So I think the next step is just to port over all of the text from the markdown API documentation into the docstrings, then the automated generation will handle the rest. Feel free to make any incremental pushes to the branch. cc @caleb531 |
Added docstrings for all the methods in the DFA class. Once the rest of the docstrings are done, it would be great to have the new site up in the next week or so, since I would like to start the PyOpenSci submission pretty soon. |
@eliotwrobson Sounds good. Let me know when you've finished working through the docstrings and I'll be happy to review any PRs you send my way! |
@caleb531 makes sense! I might follow up with some PRs that move files around in anticipation of the submission. I might follow up over email if things get complicated. |
Closing since the new docs site is deployed! |
Hi!
Before doing anything, I will ask. What do you think of converting the docs to mkdocs and hosting it on ghpages?
Something like this: https://uberg.me/setup/usage/chocolatey/
The text was updated successfully, but these errors were encountered: