Commit 4873150a authored by Denis Salem's avatar Denis Salem
Browse files

update pip package index, fix setup.py and minor stuff too

parent 9450a392
......@@ -31,3 +31,4 @@ Petite précision. Les dépendances de VenC ne sont pas désinstallées automati
- [pyyaml](https://github.com/yaml/pyyaml)
- [Pygments](https://pygments.org/)
- [requests](https://2.python-requests.org/en/master/)
- [unidecode](https://pypi.org/project/Unidecode/)
pre { line-height: 125%; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.venc_source_Text .hll { background-color: #ffffcc }
.venc_source_Text { background: #f8f8f8; }
.venc_source_Text .c { color: #408080; font-style: italic } /* Comment */
.venc_source_Text .err { border: 1px solid #FF0000 } /* Error */
.venc_source_Text .k { color: #008000; font-weight: bold } /* Keyword */
......
pre { line-height: 125%; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.venc_source_Yaml .hll { background-color: #ffffcc }
.venc_source_Yaml { background: #f8f8f8; }
.venc_source_Yaml .c { color: #408080; font-style: italic } /* Comment */
.venc_source_Yaml .err { border: 1px solid #FF0000 } /* Error */
.venc_source_Yaml .k { color: #008000; font-weight: bold } /* Keyword */
......
......@@ -173,10 +173,10 @@
WIP | Add relevant templates for themes.
WIP | Client-side search engine.
WIP | Add definition in documentation for optional fields in blog configuration.
WIP | Change nomenclature: Most of the usual patterns are changed. Fix doc.
DONE | Change nomenclature: Most of the usual patterns are changed. Fix doc.
DONE | Documenter le type des métadonnées: list, str ou dict
DONE | Fix chapters rendering (only first level sub-chapter were rendered)
TODO | Fix list CSS in academik
DONE | Fix list CSS in academik
# version 2.1.x
TODO | Override theme config override.
......
......@@ -17,13 +17,20 @@
# You should have received a copy of the GNU General Public License
# along with VenC. If not, see <http://www.gnu.org/licenses/>.
from os.path import expanduser, isdir
from os.path import isdir
from os import listdir
from setuptools import setup
homedir = expanduser('~')
import site
import sys
dst_themes_path = homedir+"/.local/share/VenC/themes/"
# Workaround to have both installation procedure from setup.py and pip
# copying data files in the right place.
dst_prefix = ''
if ' '.join(sys.argv) == "./setup.py install --user":
dst_prefix = site.USER_BASE+'/'
dst_themes_path = dst_prefix+"share/VenC/themes/"
src_themes_path = "share/themes/"
themes = listdir(src_themes_path)
......@@ -43,14 +50,14 @@ for theme in themes:
src_files
))
extra_files.append((homedir+"/.local/share/VenC/embed_providers/", ["share/embed_providers/oembed.json"]))
extra_files.append((homedir+"/.local/share/VenC/themes_assets", ["share/themes_assets/"+filename for filename in listdir("share/themes_assets")]) )
extra_files.append((homedir+"/.local/share/VenC/themes_includes", ["share/themes_includes/"+filename for filename in listdir("share/themes_includes")]) )
extra_files.append((homedir+"/.local/share/VenC/themes_templates", ["share/themes_templates/"+filename for filename in listdir("share/themes_templates")]) )
extra_files.append((dst_prefix+"share/VenC/embed_providers/", ["share/embed_providers/oembed.json"]))
extra_files.append((dst_prefix+"share/VenC/themes_assets", ["share/themes_assets/"+filename for filename in listdir("share/themes_assets")]) )
extra_files.append((dst_prefix+"share/VenC/themes_includes", ["share/themes_includes/"+filename for filename in listdir("share/themes_includes")]) )
extra_files.append((dst_prefix+"share/VenC/themes_templates", ["share/themes_templates/"+filename for filename in listdir("share/themes_templates")]) )
setup(
name='VenC',
version='2.0.0rc6',
version='2.0.0',
description='A static blog generator.',
author='Denis Salem',
author_email='denissalem@tuxfamily.org',
......
......@@ -261,7 +261,7 @@ footer
.entry .__VENC_TABLE__ table img
{width: 100%;}
.entry ul
.entry ul, .entry ul li
{clear: both;
max-width: 580px;}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment