2
0
Эх сурвалжийг харах

Small tweaks for deploy, comments and frontpage

Virgile Bello 5 жил өмнө
parent
commit
766b4bee19

+ 1 - 1
build/deploy.ps1

@@ -14,7 +14,7 @@ $response = Invoke-RestMethod -Uri http://xenko-doc.azurewebsites.net/versions.j
 $response.versions = ($response.versions + $version) | select -Unique | Sort-Object -Property @{Expression={ new-object System.Version ($_) }; Descending = $True}
 # Save file
 New-Item -Name "_siteroot" -ItemType "directory"
-$response | ConvertTo-Json | Out-File -Encoding utf8 "_siteroot/versions.json"
+$response | ConvertTo-Json | Out-File -Encoding ascii "_siteroot/versions.json"
 
 # Only update web.config if we are the latest version
 if ($response.versions[0] -eq $version)

+ 17 - 19
en/template/conceptual.html.primary.tmpl

@@ -47,26 +47,24 @@
             <article class="content wrap" id="_content" data-uid="{{uid}}">
               {{{rawTitle}}}
               {{{conceptual}}}
-            </article>
-
-            <div class="comment-section">
-              <h1>Comments</h1>
-              <div id="disqus_thread"></div>
-              <script>
 
-              var disqus_config = function () {
-              this.page.url = 'https://doc.stride3d.net/latest/en/{{{ _path }}}';  // Replace PAGE_URL with your page's canonical URL variable
-              //this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
-              };
-              (function() { // DON'T EDIT BELOW THIS LINE
-              var d = document, s = d.createElement('script');
-              s.src = 'https://stride3d.disqus.com/embed.js';
-              s.setAttribute('data-timestamp', +new Date());
-              (d.head || d.body).appendChild(s);
-              })();
-              </script>
-              <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
-            </div>
+              <div class="comment-section">
+                <div id="disqus_thread"></div>
+                <script>
+                var disqus_config = function () {
+                this.page.url = 'https://doc.stride3d.net/latest/en/{{{ _path }}}';  // Replace PAGE_URL with your page's canonical URL variable
+                //this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
+                };
+                (function() { // DON'T EDIT BELOW THIS LINE
+                var d = document, s = d.createElement('script');
+                s.src = 'https://stride3d.disqus.com/embed.js';
+                s.setAttribute('data-timestamp', +new Date());
+                (d.head || d.body).appendChild(s);
+                })();
+                </script>
+                <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+              </div>
+            </article>
           </div>
           {{^_disableAffix}}
           {{>partials/affix}}

+ 2 - 1
en/template/styles/main.css

@@ -55,7 +55,7 @@ ol li img {
 /********************************************/
 
 .comment-section {
-    margin-top: 60px;
+    margin-top: 20px;
 }
 
 .sidefilter {
@@ -508,6 +508,7 @@ h5 {
 }
 
 .stride-documentation-list {
+    display: contents;
     list-style: none;
     margin: 0;
     padding: 0;