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

Add project website #33

Closed
ll-nick opened this issue Jul 22, 2024 · 10 comments · Fixed by #50
Closed

Add project website #33

ll-nick opened this issue Jul 22, 2024 · 10 comments · Fixed by #50
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ll-nick
Copy link
Collaborator

ll-nick commented Jul 22, 2024

Hosting a static website via github.io shouldn't be a huge amount of effort but is way cooler than having just the readme.

@ll-nick ll-nick added documentation Improvements or additions to documentation low priority Nice to have but not urgent labels Jul 22, 2024
@orzechow
Copy link
Member

There's a ton of tools for Markdown to Webpage generation.
Most render the markdown file(s) to a static HTML page

  • pro: fast and robust website
  • con: needs some kind of CI/CD (GitHub Workflow)
  • pro/con: usually needs distinct doc files

Some render the Markdown even fully on the client side via JavaScript

  • pro: no compilation necessary
  • pro: one can simply use an existing Readme.md
  • con: slower on the client side and might be less robust

A (somewhat arbitrary) collection:

Vitepress

MKDocs

zero-md (based on marked)

  • client side rendering
  • very simple usage
  • nice default theme

@orzechow
Copy link
Member

I'd first try it with zero-md, as this could bring a really nice efford/result tradeoff 😀

@orzechow orzechow removed the low priority Nice to have but not urgent label Sep 23, 2024
@orzechow
Copy link
Member

orzechow commented Sep 23, 2024

I briefly tried out zero-md and GitHub Pages directly.

Turns out zero-md provides the theme and rendering for the markdown page in itself, but does not layout an appropriate page container. For a use case as ours, is intended to be used together with zero-md-docs. That again assumes the whole docs to be placed in /docs

As a result, the zero-md only page looks like this

Screenshot 2024-09-23 at 21-17-18


GitHub also features rendering of the Markdown Pages with a GitHub renderer directly and provides a selection of themes. External themes can be used as well.
As this allows reusing the root Readme.md I gave it a shot with the Cayman theme

Without any more styling to the Cayman theme, this is how our Page looks.

Screenshot 2024-09-23 at 21-44-57 ARBITRATION GRAPHS arbitration_graphs

I'd change colors, hero background image etc. but overall I like the theme regarding page layout, font etc.

@orzechow orzechow mentioned this issue Sep 23, 2024
@orzechow
Copy link
Member

orzechow commented Sep 23, 2024

See

@orzechow
Copy link
Member

@ll-nick How do you like the Cayman theme?

@ll-nick
Copy link
Collaborator Author

ll-nick commented Sep 24, 2024

Ah, I see you've been busy :)

Yes, I looked through all the themes just now and I agree that the Cayman one looks best. Using a statically generated site via GitHub actions also seems like the sensible choice to me.

So how would it work for the tutorial? Can you create sub pages using more markdown files and have some kind of navigation bar or something?

@orzechow
Copy link
Member

orzechow commented Oct 4, 2024

So how would it work for the tutorial? Can you create sub pages using more markdown files and have some kind of navigation bar or something?

Yepp, linking to the respective Markdown file (e.g. in /docs) works 🎉
See

I'm impressed – that's like no effort at all ❤️

@orzechow
Copy link
Member

orzechow commented Oct 4, 2024

Alright, I played around with colors, fonts and code highlighter themes.

That's my best approach

Screenshot 2024-10-04 at 19-11-55 Cayman theme Cayman is a clean responsive theme for GitHub Pages

These changes are still in the generic cayman theme repo (was the easiest to setup for testing):
orzechow/cayman@style_for_arbitration_graphs

So, I still need to transfer this to our page.

@ll-nick Are you fine with the theme?

@ll-nick
Copy link
Collaborator Author

ll-nick commented Oct 7, 2024

Look great! ❤️

@orzechow
Copy link
Member

orzechow commented Oct 7, 2024

Alright, PR is ready: #50

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 a pull request may close this issue.

2 participants