KIT-MRT / arbitration_graphs

Hierarchical behavior models for complex decision-making and behavior generation in robotics
https://kit-mrt.github.io/arbitration_graphs/
MIT License
15 stars 0 forks source link

Add project website #33

Closed ll-nick closed 1 month ago

ll-nick commented 4 months ago

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

orzechow commented 2 months ago

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

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

A (somewhat arbitrary) collection:

Vitepress

MKDocs

zero-md (based on marked)

orzechow commented 2 months ago

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

orzechow commented 2 months ago

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 ](https://github.com/user-attachments/assets/ff897ffc-929f-4974-8dd9-efb935962664)

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](https://github.com/user-attachments/assets/80e9a4fd-ce98-41c0-b35c-83a004a123c8)

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

orzechow commented 2 months ago

See

orzechow commented 2 months ago

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

ll-nick commented 2 months ago

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 commented 1 month ago

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 :tada: See

I'm impressed – that's like no effort at all :heart:

orzechow commented 1 month ago

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](https://github.com/user-attachments/assets/d0f7d23e-07f0-4d9f-b517-945fb25fc0ea)

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 commented 1 month ago

Look great! :heart:

orzechow commented 1 month ago

Alright, PR is ready: #50