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

Hax home page using mkdocs #1225

Merged
merged 21 commits into from
Jan 14, 2025
Merged

Hax home page using mkdocs #1225

merged 21 commits into from
Jan 14, 2025

Conversation

W95Psp
Copy link
Collaborator

@W95Psp W95Psp commented Jan 13, 2025

This PR drops the mdbook book in favor of a unique entry point website, generated using mkdocs.

This PR:

  • inits a mkdocs static website
  • moves the book
  • restore most of the hax playground interaction features

I fixed some broken links and broken contents, but I suspect there is more!

Also, there is a number of TODO left (let's see if we want those in this PR or not):

  • restore publishing of Rust/OCaml docs
  • move "Manual > Contributing" to "Dev"

Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Let's drop everything that's not properly populated yet.

  • Manual > Examples look empty
  • RFCs we could drop. But I'm fine keeping it as is.
  • Engine and Frontend should maybe only link to the rust/odocs for now? Those graphs there don't make much sense 😉
  • Keep the blog but drop my test entry there.
  • It looks like you dropped the default mkdocs page from dev. But it also had some useful information on how to use mkdocs and dependencies that I think we should keep.

@franziskuskiefer
Copy link
Member

  • restore most of the hax playground interaction features

Oh and on this I'm not sure what that means. I don't see interaction options. I'm fine with dropping them for now and adding them back later. But we should make clear what's working and what not.

@W95Psp
Copy link
Collaborator Author

W95Psp commented Jan 13, 2025

👍
Will address those points!

For the interactions, you don't see any "Play" buttons on the right corner of code blocks in e.g. "Tutorial > Panic freedom"?

Capture d’écran 2025-01-13 à 16 40 35

@W95Psp
Copy link
Collaborator Author

W95Psp commented Jan 14, 2025

Running the deployment action to try it out: https://github.com/hacspec/hax/actions/runs/12765732261

Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with the few nits addressed.

I'm seeing warnings

WARNING -  Doc file 'engine/index.md' contains a link './docs/hax-engine/index.html', but the
           target 'engine/docs/hax-engine/index.html' is not found among documentation files.
WARNING -  Doc file 'frontend/index.md' contains a link
           './docs/hax_frontend_exporter/index.html', but the target
           'frontend/docs/hax_frontend_exporter/index.html' is not found among documentation
           files.

.github/workflows/gh_pages.yml Outdated Show resolved Hide resolved
.github/workflows/gh_pages.yml Outdated Show resolved Hide resolved
docs/frontend/cli/index.md Outdated Show resolved Hide resolved
docs/frontend/index.md Show resolved Hide resolved
@W95Psp
Copy link
Collaborator Author

W95Psp commented Jan 14, 2025

The warnings are because those paths are generated via rustdoc and odoc: this happens only in the CI

@W95Psp W95Psp enabled auto-merge January 14, 2025 10:47
@W95Psp W95Psp added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit d5f4d3e Jan 14, 2025
15 checks passed
@W95Psp W95Psp deleted the franziskus/docs-setup branch January 14, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants