Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Specification Tools
Scripts
Commits
c90c14c1
Commit
c90c14c1
authored
1 year ago
by
Andreas Kraft
Browse files
Options
Downloads
Patches
Plain Diff
Beautified output. Now mentioning skipped clauses
parent
f63e596e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
toMkdocs/toMkdocs.py
+2
-4
2 additions, 4 deletions
toMkdocs/toMkdocs.py
with
2 additions
and
4 deletions
toMkdocs/toMkdocs.py
+
2
−
4
View file @
c90c14c1
...
@@ -164,10 +164,8 @@ def writeClauses(outLines:list[Clause], filename:str, navTitle:str) -> None:
...
@@ -164,10 +164,8 @@ def writeClauses(outLines:list[Clause], filename:str, navTitle:str) -> None:
# create directory first
# create directory first
os
.
makedirs
(
f
'
{
os
.
path
.
dirname
(
filename
)
}
/
{
navTitle
}
'
,
exist_ok
=
True
)
os
.
makedirs
(
f
'
{
os
.
path
.
dirname
(
filename
)
}
/
{
navTitle
}
'
,
exist_ok
=
True
)
for
i
,
f
in
enumerate
(
outLines
):
for
i
,
f
in
enumerate
(
outLines
):
if
len
(
f
.
lines
)
==
0
:
# ignore empty clauses
if
len
(
f
.
lines
)
==
0
or
f
.
onlyNav
:
# ignore empty clauses or clauses that are only for navigation
continue
print
(
f
'
[green]Navigation only -
"
{
f
.
title
}
"'
)
# Don't write content files that are only for navigation
if
f
.
onlyNav
:
continue
continue
# write to single files
# write to single files
...
...
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