Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
3e8b3ea3
Verified
Commit
3e8b3ea3
authored
1 year ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
added print statements in generation
parent
839c24b4
No related branches found
No related tags found
No related merge requests found
Pipeline
#355913
failed
1 year ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fgs/generator.py
+5
-0
5 additions, 0 deletions
fgs/generator.py
fgs/writer.py
+1
-0
1 addition, 0 deletions
fgs/writer.py
with
6 additions
and
0 deletions
fgs/generator.py
+
5
−
0
View file @
3e8b3ea3
...
...
@@ -100,20 +100,25 @@ class Generator:
writer
.
write_file
(
f
.
link
.
path
,
f
.
rawcontents
,
mode
=
"
wb
"
)
for
lang
in
self
.
config
[
'
lang
'
][
'
supported
'
]:
# all published pages
print
(
lang
,
"
-> Generatng all published pages.
"
)
for
page
in
self
.
context
[
'
pages
'
][
lang
].
values
():
writer
.
write_template
(
page
.
template
,
page
.
link
.
path
,
lang
,
{
'
page
'
:
page
},
page
.
config
)
# all hidden pages
print
(
lang
,
"
-> Generatng all hidden pages.
"
)
for
page
in
self
.
context
[
'
hidden_pages
'
][
lang
].
values
():
#print(page.slug)
writer
.
write_template
(
page
.
template
,
page
.
link
.
path
,
lang
,
{
'
page
'
:
page
},
page
.
config
)
# all tags
print
(
lang
,
"
-> Generatng all tags.
"
)
for
tag
in
self
.
context
[
'
tags
'
][
lang
].
values
():
writer
.
write_template
(
'
tag.html
'
,
tag
.
link
.
path
,
lang
,
{
'
tag
'
:
tag
},
tag
.
config
)
# homepages for languages
print
(
lang
,
"
-> Generatng homepage.
"
)
self
.
generate_homepage
(
writer
,
lang
,
lang
+
"
/index.html
"
)
# homepage
...
...
This diff is collapsed.
Click to expand it.
fgs/writer.py
+
1
−
0
View file @
3e8b3ea3
...
...
@@ -21,6 +21,7 @@ class Writer:
print
(
"
templates:
"
,
self
.
env
.
list_templates
())
def
write_template
(
self
,
template
,
path
,
lang
,
extra_context
,
localized_config
):
#print("write_template:", template, path, lang, extra_context, localized_config)
tmpl
=
self
.
env
.
get_template
(
template
)
pathsplit
=
path
.
split
(
'
/
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment