Преглед изворни кода

Deploying to readthedocs from @ chillerlan/php-qrcode@1d8b7fd8ba932a232ba6177a91283707f18e870f 🚀

codemasher пре 1 година
родитељ
комит
39f790c359
3 измењених фајлова са 8 додато и 4 уклоњено
  1. 7 3
      _static/js/versions.js
  2. 1 1
      index.html
  3. 0 0
      searchindex.js

+ 7 - 3
_static/js/versions.js

@@ -1,6 +1,6 @@
 const themeFlyoutDisplay = "hidden";
 const themeFlyoutDisplay = "hidden";
-const themeVersionSelector = "True";
-const themeLanguageSelector = "True";
+const themeVersionSelector = true;
+const themeLanguageSelector = true;
 
 
 if (themeFlyoutDisplay === "attached") {
 if (themeFlyoutDisplay === "attached") {
   function renderLanguages(config) {
   function renderLanguages(config) {
@@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") {
       return "";
       return "";
     }
     }
 
 
+    // Insert the current language to the options on the selector
+    let languages = config.projects.translations.concat(config.projects.current);
+    languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
+
     const languagesHTML = `
     const languagesHTML = `
       <dl>
       <dl>
         <dt>Languages</dt>
         <dt>Languages</dt>
-        ${config.projects.translations
+        ${languages
           .map(
           .map(
             (translation) => `
             (translation) => `
         <dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
         <dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>

+ 1 - 1
index.html

@@ -359,7 +359,7 @@
              
              
   <section id="chillerlan-php-qrcode-manual">
   <section id="chillerlan-php-qrcode-manual">
 <h1>chillerlan PHP-QRCode Manual<a class="headerlink" href="#chillerlan-php-qrcode-manual" title="Link to this heading"></a></h1>
 <h1>chillerlan PHP-QRCode Manual<a class="headerlink" href="#chillerlan-php-qrcode-manual" title="Link to this heading"></a></h1>
-<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a>  [main]. Updated on Nov 07, 2024.</p>
+<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a>  [main]. Updated on Nov 16, 2024.</p>
 <p>The phpDocumentor API documentation can be found at <a class="reference external" href="https://chillerlan.github.io/php-qrcode/">chillerlan.github.io/php-qrcode</a>.</p>
 <p>The phpDocumentor API documentation can be found at <a class="reference external" href="https://chillerlan.github.io/php-qrcode/">chillerlan.github.io/php-qrcode</a>.</p>
 <p>This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.</p>
 <p>This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.</p>
 <div class="toctree-wrapper compound">
 <div class="toctree-wrapper compound">

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
searchindex.js


Неке датотеке нису приказане због велике количине промена