Update configuration and appearence

This commit is contained in:
Vladan Popovic 2020-02-03 17:36:37 +01:00
parent 24d4d33a3d
commit ca8a8221e8
4 changed files with 30 additions and 13 deletions

View file

@ -62,7 +62,7 @@ a.atom {
font-weight: bold; font-weight: bold;
} }
.atom img { .atom img {
width: 30px; width: 20px;
font-family: andale; font-family: andale;
} }
@ -74,3 +74,14 @@ div.t-content > div.t-body > div.section:last-child {
color:#9a9a9a; color:#9a9a9a;
margin-top: 40px; margin-top: 40px;
} }
.t-content > footer a {
text-decoration: none;
}
.t-content > footer a:hover {
text-decoration: underline;
}
.t-content > footer::before {
width: 100%;
}

View file

@ -4,10 +4,13 @@
<a href="https://creativecommons.org/publicdomain/mark/1.0/"> <a href="https://creativecommons.org/publicdomain/mark/1.0/">
<span class="cc0">&copy;</span> <span class="cc0">&copy;</span>
</a> </a>
<a href="{{ path }}">{{ copyright }}</a> . <a href="{{ path }}">{{ copyright }}</a>
{% endtrans %} {% endtrans %}
<br> <div style="float: right; text-align: right;">
A customized This blog uses a customized <a href="https://typlog.com/">typlog</a><a href="https://github.com/typlog/sphinx-typlog-theme"> sphinx theme</a>.
<a href="https://typlog.com/">typlog</a> <br />
<a href="https://github.com/typlog/sphinx-typlog-theme">sphinx theme</a>. <a class='atom' href="{{ blog_baseurl }}/blog/atom.xml">
Atom feed <img src="/_static/rss-icon.svg" />
</a>
</div>
</footer> </footer>

View file

@ -16,9 +16,11 @@
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
import sphinx_typlog_theme
import ablog
copyright = "No Rights Reserved" copyright = "No Rights Reserved"
author = "Vladan Popovic" author = "Vladan Popovic"
project = author + "'s notes" project = "vladan codes"
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------
@ -28,8 +30,8 @@ project = author + "'s notes"
# ones. # ones.
extensions = [ extensions = [
'ablog', 'ablog',
'sphinxcontrib.plantuml',
] ]
import ablog
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
@ -47,7 +49,6 @@ exclude_patterns = ['cv.rst']
# #
#html_theme = 'alabaster' #html_theme = 'alabaster'
html_theme = 'sphinx_typlog_theme' html_theme = 'sphinx_typlog_theme'
import sphinx_typlog_theme
html_theme_path = [sphinx_typlog_theme.get_path()] html_theme_path = [sphinx_typlog_theme.get_path()]
pygments_style = 'default' pygments_style = 'default'
html_title = project html_title = project
@ -64,9 +65,7 @@ html_sidebars = {
'localtoc.html', 'localtoc.html',
'relations.html', 'relations.html',
'searchbox.html', 'searchbox.html',
'sourcelink.html',
'atom.html', 'atom.html',
'recentposts.html',
'categories.html', 'categories.html',
'archives.html', 'archives.html',
] ]
@ -80,3 +79,6 @@ blog_languages = {
'en': ('English', None), 'en': ('English', None),
} }
blog_baseurl = 'localhost' blog_baseurl = 'localhost'
# PlantUML binary config
plantuml = 'java -jar /home/vladan/bin/plantuml.jar'

View file

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py3 envlist = blog
skipsdist = True skipsdist = True
[testenv:blog] [testenv:blog]
@ -7,10 +7,11 @@ deps =
sphinx sphinx
sphinx-autobuild sphinx-autobuild
sphinx-typlog-theme sphinx-typlog-theme
sphinxcontrib-plantuml
ablog ablog
commands = commands =
sphinx-autobuild -E -b html source/ build/html/ sphinx-autobuild -E -b html source/ build/html/
[testenv:cv] [testenv:cv]
whitelist_externals = /usr/bin/pandoc whitelist_externals = /usr/bin/pandoc
commands = pandoc --from=rst -o build/cv.pdf source/cv.rst commands = pandoc -V geometry:margin=1.6in --from=rst -o build/cv.pdf source/cv.rst