ziglang/ziglang.org
14
29
Fork
You've already forked ziglang.org
31

std docs: allow to change version like in language reference #423

Open
opened 2024年10月25日 04:35:39 +02:00 by Atomk · 1 comment
Atomk commented 2024年10月25日 04:35:39 +02:00 (Migrated from github.com)
Copy link

The language reference has a menu to change the current version:
image

Some users on Discord requested the ability to also change version in the std docs, mainly due to #355 (which was apparently fixed but it needs to be looked at again)

If this change needs to be done in the Zig repo feel free to move the issue there.

The language reference has a menu to change the current version: ![image](https://github.com/user-attachments/assets/8cfe2fe8-1d2f-4611-968a-ca794eb63f68) Some users on Discord requested the ability to also change version in the [std docs](https://ziglang.org/documentation/master/std/), mainly due to #355 (which was apparently fixed but it needs to be looked at again) If this change needs to be done in the Zig repo feel free to move the issue there.
eamonburns commented 2026年02月19日 20:07:30 +01:00 (Migrated from github.com)
Copy link

I am not sure this is really possible. The zig std command serves documentation for the standard library of the current Zig executable, which makes it agnostic toward the Zig version (it just uses the current one). I assume the standard library documentation on ziglang.org is generated from that.

There is a way to change the version of the standard library documentation though:

  • Go to the language reference for the version (e.g. 0.15.2, master).
  • Click the "Zig standard library" link under the "Zig standard library" heading.

(You can also just append /std to the URL of the language reference)

I am not sure this is really possible. The `zig std` command serves documentation for the standard library of the current Zig executable, which makes it agnostic toward the Zig version (it just uses the current one). I assume the standard library documentation on ziglang.org is generated from that. There is a way to change the version of the standard library documentation though: - Go to the language reference for the version (e.g. [0.15.2](https://ziglang.org/documentation/0.15.2/), [master](https://ziglang.org/documentation/master/)). - Click the "Zig standard library" link under the "Zig standard library" heading. (You can also just append `/std` to the URL of the language reference)
Sign in to join this conversation.
No Branch/Tag specified
main
release-0.16.0
apraga/french
homersimpsons/fix/mobile-responsiveness
MarkLagodych/patch-1
Zirunis/patch-1
zmitchell/zmitchell/build-graph-docs
generalmimon/fix-unit-testing-examples
generalmimon/fix-code-snippet-in-0.15.1-relnotes
TheConnorJohnson/main
meeting-minutes
enkvadrat/update-curl-example
No results found.
Labels
Clear labels
bounty
https://ziglang.org/news/announcing-donor-bounties
bug
Observed behavior contradicts documented or intended behavior.
contributor-friendly
This issue is limited in scope and/or knowledge of project internals.
downstream
An issue with a third-party project that uses this project.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
infra
An issue related to project infrastructure, e.g. continuous integration.
optimization
A task to improve performance and/or resource usage.
question
No questions on the issue tracker; use a community space instead.
regression
Something that used to work in a previous version stopped working
upstream
An issue with a third-party project that this project uses.
use case
Describes a real use case that is difficult or impossible, but does not propose a solution.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglang/ziglang.org#423
Reference in a new issue
ziglang/ziglang.org
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?