Giter Club home page Giter Club logo

Comments (5)

stronk7 avatar stronk7 commented on July 4, 2024 1

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.

sarjona avatar sarjona commented on July 4, 2024

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.

andrewnicols avatar andrewnicols commented on July 4, 2024

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.

stronk7 avatar stronk7 commented on July 4, 2024

(And I said “redirected” on purpose)

from devdocs.

davewoloszyn avatar davewoloszyn commented on July 4, 2024

I agree with previous comments.

  • Use versioned links to begin with
  • Unversioned links redirect to latest version

from devdocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.