-
-
Notifications
You must be signed in to change notification settings - Fork 67
Creating a preview of the outline proposed #226
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
Conversation
6bdb080
to
9017361
Compare
I think I found a way to deploy it to my # build passing the `html_baseurl` value
rm -rf _build && sphinx-build -b html . _build/html/ -Dhtml_baseurl="/user_guide/" -W
# use `ghp-import` to push to `gh-pages` in my fork called `kinow`, need the option that creates the .nojekyll file apparently
ghp-import --no-jekyll --push --remote=kinow --branch=gh-pages ./_build/html/ It is not rendering 100% correct for me, but I think that might be due to cache on the GH Pages server side. Looking at my |
There is also the RTD PR preview: https://common-workflow-languageuser-guide--226.org.readthedocs.build/en/226/ |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
Ah! I saw the GH action for RTD, and that it built the site correctly. But I couldn't find the link to preview. Thanks!!! |
Seems like this would break all existing links to specific pages in the user guide. We can re-organize, but we should add redirects or other text to hidden pages so that old links aren't completely useless. |
My idea is to slowly move the content from the episodes into the new sections of the user guide. Once the content has been moved, or is not necessary any longer, the text could be replaced by some text like: “The content of this page has been moved to Section A, and Section B. If you would like to access the old content, you can view the source on [GitHub][link-to-old-page-commit-with-content], or to visualize it in the [Internet Archive WayBack Machine][link-to-wayback-machine].” Ideally, I think it would be nice to also send a 410, permanently gone status with the response, so search engines know the page is not to be considered in the search results. Or maybe a 301 or 30x if it has a single page to redirect. But that's probably hard with GH pages (probably the closest are the meta refreshes or JS navigation changes). |
Hi Bruno - This is looking really nice. Thank you! Here are some thoughts. (I will do a different message for each section)
|
|
Hi @swzCuroverse ! Thanks a lot for the great feedback.
I've replaced that by CWL Runners. There's still a link to CWL Implementations at the very bottom of the page, but hopefully that won't distract readers.
Glad I'm not the only one! I mentioned it in #222, it took me a while to figure out what was a job order. I had seen it in the I thought it would be good to introduce this term earlier to users, but actually something like Inputs Object would be a lot more intuitive. @tetron , @mr-c maybe we could phase-out the term Job Order, and slowly replace it in places like cli help, user guide, etc? I've replaced it in this PR by Inputs Object, and also added the note about it being JSON or YAML. Thanks!
The Quick Start is using CWL Runner, and the user must be first introduced to the term now here in Prerequisites section. I've added the same link to the implementations at the bottom, and also at a note right after where it appears, alongside a short explanation (will self-edit what I wrote later today).
Good point. I tried to not assume the reader knew what a shebang was, but maybe introducing it before the section about the
Typo fixed! Thanks!
Me too!!! I spent almost 30 minutes fiddling with the Sphinx settings, trying to change the command output (syntax highlighting and formatting&layout), but I decided to keep writing and leave that for later. I will have another go at improving it later. I also want to make the output less platform & user-dependent. At the moment it includes my user name, home directory, etc. Since Sphinx uses Python, we can probably write something (or use some existing extension) that runs those commands in a container—for instance—to get the same output independent of the user or environment where the documentation it being built on. Thank you!!! 🚀 |
Syntax highlighting for code blocks improved a little. Now each code block contains a small caption, with a link (so users can reference it when sharing links, reporting issues, etc.). It's also noticeable the difference between the command and the output in a bash shell session. Now for tomorrow: start writing the basic concepts section, where I will try to use some images too, like diagrams to illustrate the basic concepts for readers 🤓 |
Added the first graph. It was created with Graphviz, following what was used in the Cylc doc repository (credit to them, I learned about it there 😬 ). The first added contains the processing units of the CWL object model. It uses In theory, when we have a new specification, it should either render the updated object model, or require little maintenance to update the graph 🤞 (little hiccup with Graphviz rendering the elbow-joint edges, will try to fix it later) |
a05eb81
to
ce1f233
Compare
I've separated the User Guide content, now in Also separated the libraries into groups in I've updated the libraries too, and noticed the Added some more text to the Basic Concepts section, as well as TODO's to consult with Peter/Michael/Sarah/and others. |
https://docs.readthedocs.io/page/config-file/v2.html
|
That fixed it @mr-c ! Thanks!!! |
To have Sphinx to build a page, without adding it to a Example:
|
Pushing a new commit with the old episodes as orphan pages, and will slowly start adding notes in each page telling users the page is out-of-date, and pointing to a new page when we have a new page with the same content.
We have two pages from the old User Guide that will be 404, but I can restore if others think it's important: |
Ah, good suggestion. Let me try it locally and I'll either push it here for preview, or attach some screenshots. Thanks @mr-c! |
@mr-c last commit changes the outline to have a single "topics" section, which keeps the top menu functional. I simply merged by putting all the links from the old “Essential Topics” first, followed by the entries from “Advanced Topics”. The RTD preview should render the updated version soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are no objections, I would like to merge & deploy this, then work incrementally in smaller PRs to add more content & polish
/cc @tetron |
I approve this but I don't seem to be assigned as a reviewer so I can't formally hit the approve button? |
Congratulations, thank you @kinow and reviewers! |
Thank you everybody for the help & patience! Feel free to send feedback as comments, messages, or follow-up issues 👍 |
Closes #222
Closes #228
Closes #157 (invalid/outdated)
Closes #141 (I think)
Closes #64 (in prerequisites)
Closes #6 (I think? Then we can open new PR's or issues for improving the FAQ if needed?)
Closes #2 (I think? Maybe invalid/outdated now with this change, and also with the novice tutorial work?)
Closes #180 (invalid/outdated the missing chapter won't be a problem as we don't have numbers in chapters - although we do have numbers in sections now… but that issue at least is fixed, and it really bothered me too 😄 )
Closes #217 (link added to the first paragraph of the documentation)
Closes #233 (new
.github/workflows/documentation-links.yaml
file added as per their docs, also includes link to their docs)A draft PR with a preview of #222. Following @tetron's suggestion so that it's easier for others to review & send feedback, and also allows me to try to write some of the new text (or copy existing text into new locations, add redirects for old pages, etc.).
Once the items above are complete (or at least the Basic Concepts page as well) it will be ready for an initial review from @mr-c , @tetron , @swzCuroverse , and others :-) Then what'll be left are the Core Concepts, FAQ, Tutorials, and How-Tos, which I think will be simpler, but may take longer as some require writing new content.