Comments (5)
I like docs having their final location since created, plus that enables also having more than one development version (like we have had in the past) and other niceties.
And, if possible, always redirecting from un-versioned URLs to the last versioned one, please.
from devdocs.
I like the idea of creating docs from the beginning in the proper folder where they belong <3 That way, it will be clearer that, although the development branch is called "main" in moodle.git, all the content in that folder will be related to the unreleased next version (4.5 in our case).
So +1 to create /docs/4.5 from the beginning.
The only thing we should guarantee is that by default the content on /docs/4.5 should be displayed when accessing without selecting any specific version (so our last version should always be the default one, as we are doing now with "main") :-)
from devdocs.
The only thing we should guarantee is that by default the content on /docs/4.5 should be displayed when accessing without selecting any specific version (so our last version should always be the default one, as we are doing now with "main") :-)
Yes - that will happen already. You can trial this locally with this change:
diff --git a/config/navbar.js b/config/navbar.js
index 342bd99db3..798c6c435e 100644
--- a/config/navbar.js
+++ b/config/navbar.js
@@ -31,7 +31,7 @@ const navbar = {
// },
items: [
{
- to: '/docs',
+ to: '/docs/4.4',
label: 'Guides',
position: 'left',
},
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 96b8fd6741..fef93faa39 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -26,6 +26,7 @@ const versionConfig = Object.fromEntries(Versions.map((version) => [version, {
}]));
versionConfig.current = {
label: 'main',
+ path: '4.4',
banner: 'none',
};
from devdocs.
(And I said “redirected” on purpose)
from devdocs.
I agree with previous comments.
- Use versioned links to begin with
- Unversioned links redirect to latest version
from devdocs.
Related Issues (20)
- [docs] Add missing documentation for selectgroups for selects with optgroups HOT 2
- [docs] Add screenshot to Whoops docs
- [docs] Update Navigation API docs with Secondary navigation info
- [docs] Create documentation for [Moodle 4.4 release]
- [chore] Migrate from Netlify to Cloudflare HOT 1
- [docs] Migrate SCSS
- [docs] Migrate SCSS HOT 2
- [repo] Problem with Push migated pages to Wikimedia GHA
- [chore] Create a React component and/or mdx syntax to link to phpdocs
- Make ie easier to find the freeze dates for the next release or two
- [docs] Create documentation for `editor_styles.css` HOT 1
- [spam] MyAdmin.php
- [spam] MOODLE.ORG
- [spam] Guides-templete HOT 1
- [spam] Moodle Developers Resourves HOT 2
- [spam] Php
- [spam] Moodle_Script_Modules HOT 1
- [docs] Error in documentation of using grunt in additional plugins
- [spam] # Info for mirror maintainers On `10th` of December [348869399] - Chromium
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devdocs.