You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, we used 0-indexed and left-padded tutorial URLs. For example, the 2nd step of a tutorial had URL `/tutorials/<name>/#1`.
Now it is 1-indexed, and not padded. For example: `/tutorials/<name>/#2`.
I think 0-indexed is more intuitive, because it means the URLs are aligned with the "Step 2/8" text on the page.
I think left-padding was unnecessary in URLs, plus by removing it, we have a convenient way to detect people still on the 0-indexed scheme, and fix the URLs to be 1-indexed. This way nobody will get jumped ahead if they reload before/after the new scheme is deployed.
Also fixes a bug where we would set the URL to `/tutorials/<name>#2` (no trailing slash), but then after reloading it would turn into `/tutorials/<name>/#2`. Now we always set the final form.
To match our current outline, I'd like to omit link for the directories themselves.
I did this by replacing the
index.md
in a given directory with a stub that contains only metadata, and rewriting the nav template like this:Not sure if there's a simpler way to do this.
The text was updated successfully, but these errors were encountered: