Update docs

This commit is contained in:
Alexandre Vicenzi 2020-04-20 23:38:29 +02:00
parent 533bc1760e
commit 8e4a88edde
131 changed files with 17402 additions and 4778 deletions

View file

@ -12,12 +12,22 @@
<link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/stylesheet/style.min.css">
<link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/pygments/monokai.min.css">
<link id="dark-theme-style" rel="stylesheet" type="text/css"
media="(prefers-color-scheme: dark)"
href="http://flex.alxd.me/blog/theme/stylesheet/dark-theme.min.css">
<link id="pygments-dark-theme" rel="stylesheet" type="text/css"
media="(prefers-color-scheme: dark)"
href="http://flex.alxd.me/blog/theme/pygments/monokai.min.css">
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
href="http://flex.alxd.me/blog/theme/pygments/monokai.min.css">
<link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/font-awesome/css/fontawesome.css">
<link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="http://flex.alxd.me/blog/theme/font-awesome/css/solid.css">
<link href="http://flex.alxd.me/blog/static/custom.css" rel="stylesheet">
<link href="http://flex.alxd.me/blog/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Flex Atom">
@ -74,20 +84,35 @@
});
</script>
</head>
<body>
<body >
<aside>
<div>
<a href="http://flex.alxd.me/blog">
<img src="http://flex.alxd.me/blog/theme/img/profile.png" alt="Flex" title="Flex">
</a>
<h1><a href="http://flex.alxd.me/blog">Flex</a></h1>
<h1>
<a href="http://flex.alxd.me/blog">Flex</a>
</h1>
<p>The minimalist Pelican theme</p>
<nav>
<ul class="list">
<li><a target="_blank" href="http://flex.alxd.me/blog/pages/about.html#about">About</a></li>
<li><a target="_blank" href="http://flex.alxd.me/blog/pages/contact.html#contact">Contact</a></li>
<li>
<a target="_self"
href="http://flex.alxd.me/blog/pages/about.html#about">
About
</a>
</li>
<li>
<a target="_self"
href="http://flex.alxd.me/blog/pages/contact.html#contact">
Contact
</a>
</li>
</ul>
</nav>
@ -95,14 +120,14 @@
<ul class="social">
<li>
<a class="sc-github" href="https://github.com/alexandrevicenzi/Flex" target="_blank">
<i class="fab fa-github">
</i>
</a></li>
<i class="fab fa-github"></i>
</a>
</li>
<li>
<a class="sc-rss" href="/blog/feeds/all.atom.xml" target="_blank">
<i class="fas fa-rss">
</i>
</a></li>
<i class="fas fa-rss"></i>
</a>
</li>
</ul>
</div>
@ -113,20 +138,17 @@
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</aside>
<main>
<nav>
<a href="http://flex.alxd.me/blog"> Home
</a>
<a href="http://flex.alxd.me/blog">Home</a>
<a href="/archives.html">Archives</a>
<a href="/categories.html">Categories</a>
<a href="/tags.html">Tags</a>
<a href="http://flex.alxd.me/blog/feeds/all.atom.xml"> Atom
</a>
<a href="http://flex.alxd.me/blog/feeds/all.atom.xml">Atom</a>
</nav>
@ -135,8 +157,7 @@
<h1 id="flex-pelican-theme-update-2-0">Flex 2.0</h1>
<p>
Posted on September 13, 2016 in <a href="http://flex.alxd.me/blog/category/news.html">News</a>
Posted on September 13, 2016 in <a href="http://flex.alxd.me/blog/category/news.html">News</a>
</p>
</header>
@ -152,7 +173,7 @@ You can read about <a href="https://github.com/alexandrevicenzi/Flex/wiki/Transl
If you use English it changes nothing for you.
But if you want to use translation you need to add new lines to your pelican configuration file.</p>
<p>Here is a small example to use Flex in another language.</p>
<div class="highlight"><pre><span></span><span class="c1"># Enable i18n plugin, probably you already have some others here.</span>
<div class="highlight"><pre><span></span><code><span class="c1"># Enable i18n plugin, probably you already have some others here.</span>
<span class="n">PLUGINS</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;i18n_subsites&#39;</span><span class="p">]</span>
<span class="c1"># Enable Jinja2 i18n extension used to parse translations.</span>
<span class="n">JINJA_EXTENSIONS</span> <span class="o">=</span> <span class="p">[</span><span class="s1">&#39;jinja2.ext.i18n&#39;</span><span class="p">]</span>
@ -162,7 +183,7 @@ But if you want to use translation you need to add new lines to your pelican con
<span class="n">DEFAULT_LANG</span> <span class="o">=</span> <span class="s1">&#39;de&#39;</span>
<span class="n">OG_LOCALE</span> <span class="o">=</span> <span class="s1">&#39;de_DE&#39;</span>
<span class="n">LOCALE</span> <span class="o">=</span> <span class="s1">&#39;de_DE&#39;</span>
</pre></div>
</code></pre></div>
<p>Last but not least, Flex supports the feature "X minute read", similar <a href="https://medium.com/">Medium</a>.</p>
@ -177,8 +198,7 @@ But if you want to use translation you need to add new lines to your pelican con
</div>
<div class="center social-share">
<p> Like this article? Share it with your friends!
</p>
<p>Like this article? Share it with your friends!</p>
<div class="addthis_native_toolbox"></div>
<div class="addthis_sharing_toolbox"></div>
<div class="addthis_inline_share_toolbox"></div>
@ -206,17 +226,25 @@ But if you want to use translation you need to add new lines to your pelican con
})();
</script>
<noscript>
Please enable JavaScript to view comments.
Please enable JavaScript to view comments.
</noscript>
<!-- End Disqus -->
</article>
<footer>
<p>
&copy; 2019 - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
&copy; 2020 - This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>
</p>
<p> Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
<p>
Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
<span class="footer-separator">|</span>
Switch to the <a href="javascript:void(0)" onclick="theme.switch(`dark`)">dark</a> | <a href="javascript:void(0)" onclick="theme.switch(`light`)">light</a> | <a href="javascript:void(0)" onclick="theme.switch(`browser`)">browser</a> theme
<script id="dark-theme-script"
src="http://flex.alxd.me/blog/theme/dark-theme/dark-theme.min.js"
data-enable-auto-detect-theme="True"
data-default-theme="light"
type="text/javascript">
</script>
</p><p>
<a rel="license"
href="http://creativecommons.org/licenses/by-sa/4.0/"
@ -246,5 +274,6 @@ But if you want to use translation you need to add new lines to your pelican con
}
</script>
</body>
</html>