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

Reorder book-based documentation #8130

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

rikhuijzer
Copy link
Contributor

@rikhuijzer rikhuijzer commented Mar 14, 2024

This PR suggests to reorder the book-based documentation. The main change is moving the CLI chapter before the API (embedding) chapter like was proposed in #7987 by @alexcrichton. The rest is mostly cleaning up of duplicate or outdated information.

With these changes, this PR fixes some confusion that I had with the current layout. Currently, it's not so clear how the Subsection "2.3 Embedding in Rust" relates to Chapter "3. Using WebAssembly from your language" with Subsection "3.1 Rust". With these changes, these two examples are merged and now all fall under Chapter "2. Using the Wasmtime API".

More specifically, this is what this PR changed:

  1. Move the CLI chapter before the API chapter (like proposed in Revamp some of Wasmtime's book-based documentation #7987).
  2. Move some Rust and C examples from the "Examples" chapter into the API chapter.
  3. Remove the original main C and Rust chapter introduction files. They contained mostly outdated or duplicate information.
  4. Rename the "Examples" chapter to "Further Examples". (For lack of a better name.)
  5. Rename "Embedding" to "API" at some places since API is a more generally known term. The term "embedding" is also slightly more confusing, I think, because the term nowadays also used a lot in LLM-related communication.
  6. Fix some outdated links and documentation by reading through the entire book.
  7. Fix a missing subheading for Elixir (it was mentioned on the lang page, but not in the menu).

On a high level, this is what this PR changed:

1. Move the CLI chapter before the API chapter.
    I think this makes sense because the CLI is more high-level.
    The same change was proposed in
    bytecodealliance#7987.
1. Move some Rust and C examples from the "Examples" chapter into the API chapter.
1. Remove the original main C and Rust chapter introduction files.
    They contained mostly outdated or duplicate information.
1. Rename the "Examples" chapter to "Further Examples".
    (For lack of a better name.)
1. Rename "Embedding" to "API" at some places since API is a more generally known term.
    The term "embedding" is also slightly more confusing, I think,
    because the term nowadays also used a lot in LLM-related communication.
1. Read through the entire document and fix some outdated links and information.
1. Fix a missing subheading for Elixir (it was mentioned on the lang page, but not in the menu).
@rikhuijzer rikhuijzer requested a review from a team as a code owner March 14, 2024 07:31
@rikhuijzer rikhuijzer requested review from cfallin and removed request for a team March 14, 2024 07:31
@github-actions github-actions bot added the wasmtime:docs Issues related to Wasmtime's documentation label Mar 14, 2024
@cfallin cfallin requested a review from alexcrichton March 14, 2024 15:08
@cfallin
Copy link
Member

cfallin commented Mar 14, 2024

Reassigning review to @alexcrichton as it's not totally clear to me how this should relate with the still-pending #7987. Thanks @rikhuijzer for the careful thought around all of these changes though; they do seem like reasonable cleanups to me!

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks for this! I like the organization better here as well 👍

@alexcrichton alexcrichton added this pull request to the merge queue Mar 14, 2024
Merged via the queue into bytecodealliance:main with commit 310e667 Mar 14, 2024
19 checks passed
@rikhuijzer rikhuijzer deleted the rh/reorder-docs branch March 14, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:docs Issues related to Wasmtime's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants