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

Move documentation from RMOD to GitHub #250

Open
theseion opened this issue Jun 5, 2021 · 20 comments
Open

Move documentation from RMOD to GitHub #250

theseion opened this issue Jun 5, 2021 · 20 comments
Labels
documentation pinned Never mark this issue stale

Comments

@theseion
Copy link
Owner

theseion commented Jun 5, 2021

@seandenigris Maybe you'd like to help ;)

@seandenigris
Copy link
Collaborator

What do you have in mind? GH wiki, pages, Pillar, something else?

@theseion
Copy link
Owner Author

theseion commented Jun 5, 2021

Not sure yet. Have you ever worked with non-trivial documentation on GitHub? Any experience you can share?

I like documentation in the README but only for scanning it. So rather something like wiki. However, the GH wiki seems underwhelming to me, e.g. search is non-existent (why would I want to search for the name of a page? What I want is to search the contents of the wiki...). So maybe pages? Can we easily get good search on those? How would Pillar play into it? Would we simply generate HTML? I've never really worked with Pillar.

I'm happy to follow your lead, if you have any ideas.

@seandenigris
Copy link
Collaborator

seandenigris commented Jun 7, 2021

I don’t have much experience in this area. Googling revealed that there is a Jekyll search plugin, but it seems to be unmaintained. Working in-(Smalltalk)-image would probably be the most flexible because we can export to several common formats, including HTML and markdown, a subset of which GToolkit supports as of a few days ago and Pharo will support in v10. IIUC pages can consume Markdown, injecting it into HTML templates. We could also potentially auto generate a readme that way. Maybe a TOC linked to the wiki?

For me, the best option at the moment is to work in GT because the markdown is live rendered, although maybe in Pharo support is usable if not “finished”. I don’t think there is a best practice here so probably do TSTTCPW and quickly error correct as needed

@theseion
Copy link
Owner Author

theseion commented Jun 8, 2021

You are probably right that GT might be the simplest way aside from just publishing via GitHub pages directly. I tried that quickly and it works but it lacks search and there aren't a lot of options for styling etc. So I started looking around at how others publish documentation and came across Hugo. It's also a static site generator but has a ton of options while at the same time seems to be somewhat simple to set up. There are also a couple of nice themes. I like this one for example: https://themes.gohugo.io/hugo-book/. Hugo also seems to make it easy to integrate search and to build the site using GitHub Actions.

That sounds like something fun I'd like to play around with. I've published two markdown files under /docs for testing (the content isn't markdown yet, I simply copied the text from the current documentation).

If you're up for it, go ahead and try something. I'll give you permissions on the repository (just use a separate branch for now and commit with [skip ci].

@theseion
Copy link
Owner Author

I have an experimental setup with Hugo. It doesn't quite work like I want to yet but I have an idea how to do it. I've also added quick copies of all the documentation pages. Once we're done with the setup, we'll need to go through those in more detail.

There are two more things that I want to have in for the documentation:

  1. documentation for each (active) version and the ability to get there easily
  2. a changelog (I've ported the old changelog entries for a start)

If you want to play around with the docs and view them in your browser locally you'll need to install Hugo and run the server (hugo server --minify -s docs/hugo). It will hot reload any changes.

@theseion
Copy link
Owner Author

Here it is: https://theseion.github.io/Fuel/. The docs will build automatically when you push to master and include [docs] in the commit message. [docs] will also skip builds on Travis and Appveyor.

The configuration for Hugo is in the hugo directory on the master branch, the static pages are published to the docs branch.

You can run Hugo locally in the root directory by first fetching the theme submodule with git submodule update --init and then running Hugo with hugo server --minify -s hugo.

@seandenigris
Copy link
Collaborator

The search box seems to be doing something (typing there leads to fewer pages listed on the left), but doesn't exactly seem right. E.g. I typed "rename" and then clicked on "Builtin Header Support", which remained in the list. But it didn't seem to contain "rename"

@theseion
Copy link
Owner Author

I think that's because the search does fuzzy matching. It's neat but I agree, it could be better. Switching to a different theme or using a different search engine shouldn't be too difficult. But we'll focus on that when we're done with the rest (at least I am :) ).

@stale
Copy link

stale bot commented Aug 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

@stale stale bot added the stale label Aug 13, 2021
@theseion
Copy link
Owner Author

Not stale.

@stale stale bot removed the stale label Aug 13, 2021
@stale
Copy link

stale bot commented Oct 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

@stale stale bot added the stale label Oct 12, 2021
@theseion
Copy link
Owner Author

bump

@tinchodias
Copy link
Collaborator

This is done in https://theseion.github.io/Fuel/ right?
Looks really great, and it's very useful to have a search! thanks

@stale stale bot removed the stale label Nov 5, 2021
@tinchodias
Copy link
Collaborator

I see that the "previous" official website is redirected to rmod's home now (https://rmod.inria.fr/web/software/Fuel).

I wanted to check the side bar, I think, for reference to the logo's creator, AFAIR "Claire Barroca".

@theseion
Copy link
Owner Author

theseion commented Nov 6, 2021

Looks really great, and it's very useful to have a search! thanks

Yes.

I see that the "previous" official website is redirected to rmod's home now (https://rmod.inria.fr/web/software/Fuel).

I wanted to check the side bar, I think, for reference to the logo's creator, AFAIR "Claire Barroca".

Oh, you're right! They must have done that this week. I think you're correct about the name. Any chance you can find out for sure?

@stale
Copy link

stale bot commented Jan 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

@stale stale bot added the stale label Jan 5, 2022
@theseion
Copy link
Owner Author

theseion commented Jan 5, 2022

Not stale

@stale stale bot removed the stale label Jan 5, 2022
@stale
Copy link

stale bot commented Mar 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

@stale stale bot added the stale label Mar 6, 2022
@theseion
Copy link
Owner Author

theseion commented Mar 6, 2022

Not stale.

@stale stale bot removed the stale label Mar 6, 2022
@stale
Copy link

stale bot commented May 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will remain open but will probably not come into focus. If you still think this should receive some attention, leave a comment. Thank you for your contributions.

@stale stale bot added the stale label May 5, 2022
@theseion theseion added the pinned Never mark this issue stale label May 5, 2022
@stale stale bot removed the stale label May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation pinned Never mark this issue stale
Projects
None yet
Development

No branches or pull requests

3 participants