docs: remove versionned documentation

This commit is contained in:
Alexis Couvreur
2024-10-21 00:37:09 -04:00
parent e01e6242b3
commit 60dbfd8c6d

View File

@@ -19,13 +19,8 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
<script> <script>
console.log("Loading docs/index.html")
window.$docsify = { window.$docsify = {
name: '<a id="home-link" class="app-name-link">Sablier</a><div>' + name: 'Sablier',
'<select id="version-selector" class="sidebar-version-select" name="version">' +
'<option value="main">main</value>' +
'<option value="beta">beta</value>' +
'</select></div>',
// disable automatic linking to avoid navigating when clicking on select // disable automatic linking to avoid navigating when clicking on select
nameLink: false, nameLink: false,
repo: 'https://github.com/sablierapp/sablier', repo: 'https://github.com/sablierapp/sablier',
@@ -34,23 +29,12 @@
relativePath: true, relativePath: true,
alias: { alias: {
// Uncomment lines below for local development. // Uncomment lines below for local development.
// '/main/': 'README.md', '/': 'README.md',
// '/main/(.*)': '$1', '/(.*)': '$1',
'/beta/.*/_sidebar.md': '/beta/_sidebar.md',
'/main/.*/_sidebar.md': '/main/_sidebar.md',
}, },
auto2top : true, auto2top : true,
maxLevel : 3, maxLevel : 2,
subMaxLevel: 3, subMaxLevel: 2,
namespaces: [
{
id: "version",
values: ["main", "beta"],
default: "main",
optional: true,
selector: "#version-selector",
}
],
tabs: { tabs: {
persist : true, // default persist : true, // default
sync : true, // default sync : true, // default
@@ -62,7 +46,6 @@
paths: 'auto', paths: 'auto',
hideOtherSidebarContent: true, hideOtherSidebarContent: true,
depth: 3, depth: 3,
pathNamespaces: ['/main', '/beta']
} }
} }
</script> </script>
@@ -77,7 +60,6 @@
<script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script> <script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
<!-- plugins --> <!-- plugins -->
<script src="//unpkg.com/docsify-namespaced@0.1.1/dist/docsify-namespaced.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script> <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify-copy-code@2"></script> <script src="//unpkg.com/docsify-copy-code@2"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script> <script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script>