Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Denis Salem
VenC
Commits
c8355c1e
Commit
c8355c1e
authored
Aug 20, 2019
by
Denis Salem
Browse files
Add white spaces
parent
30311242
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/venc2/datastore/__init__.py
View file @
c8355c1e
...
...
@@ -195,10 +195,21 @@ class DataStore:
return
argv
[
1
]
except
:
return
''
def
if_chapters
(
self
,
argv
):
if
self
.
chapters_index
!=
[]:
return
argv
[
0
]
else
:
try
:
return
argv
[
1
]
except
:
return
''
def
root_site_to_jsonld
(
self
):
self
.
root_as_jsonld
=
{
"@context"
:
"http://schema.org"
,
q
"@context"
:
"http://schema.org"
,
"@type"
:
[
"Blog"
,
"WebPage"
],
"@id"
:
self
.
blog_configuration
[
"blog_url"
]
+
"/root.jsonld"
,
"name"
:
self
.
blog_configuration
[
"blog_name"
],
...
...
test/themes.py
View file @
c8355c1e
...
...
@@ -89,6 +89,7 @@ def test_theme(args, test_name):
try
:
file_ref
=
open
(
'../refs/'
+
(
theme
.
capitalize
())
+
'/'
+
refs_exists
[
index
],
'r'
).
read
().
split
(
'
\n
'
)
file_tested
=
open
(
'blog/'
+
tested_exists
[
index
],
'r'
).
read
().
split
(
'
\n
'
)
except
UnicodeDecodeError
:
continue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment