Skip to content

Commit

Permalink
Move docs from /latest to /main
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Jan 4, 2025
1 parent b2ca03e commit e065643
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
sphinx-build docs/source docs/build -b dirhtml
# Get version from pyproject.toml.
- name: Override subdirectory to `latest/` for pushes
- name: Override subdirectory to `main/` for pushes
run: |
echo "DOCS_SUBDIR=latest" >> $GITHUB_ENV
echo "DOCS_SUBDIR=main" >> $GITHUB_ENV
if: github.event_name == 'push'

# Deploy to version-dependent subdirectory.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/_templates/sidebar/brand.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
.reverse();
console.log(versions);
let htmlString = "<ul style='margin: 0.5rem 0 0 0'>";
htmlString += `<li><a href="https://viser.studio/latest">latest</a></li>`;
htmlString += `<li><a href="https://viser.studio/main">main</a></li>`;
for (let version of versions) {
htmlString += `<li><a href="https://viser.studio/versions/${version}">${version}</a></li>`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/viser/client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ function ViserLogo() {
</Anchor>
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
<Anchor
href="https://viser.studio/latest"
href="https://viser.studio/main"
target="_blank"
fw="600"
style={{ "&:focus": { outline: "none" } }}
Expand Down

0 comments on commit e065643

Please sign in to comment.