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
8c01eec8
Commit
8c01eec8
authored
10 months ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Including hanging paragraphs and a note to fix them
parent
bb5de7bf
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
spec_on_pages.sh
+1
-1
1 addition, 1 deletion
spec_on_pages.sh
toMkdocs/toMkdocs.py
+2
-0
2 additions, 0 deletions
toMkdocs/toMkdocs.py
with
3 additions
and
1 deletion
spec_on_pages.sh
+
1
−
1
View file @
8c01eec8
...
@@ -39,7 +39,7 @@ git checkout $7
...
@@ -39,7 +39,7 @@ git checkout $7
####### GENERATE NAV SPEC #######
####### GENERATE NAV SPEC #######
echo
"------ Generate input for mkdocs --------"
echo
"------ Generate input for mkdocs --------"
python3
$1
-it
--title
${
9
^^
}
"./
$8
.md"
python3
$1
-it
-ihp
--title
${
9
^^
}
"./
$8
.md"
echo
"------ Move to docs folder --------"
echo
"------ Move to docs folder --------"
mv
${
9
^^
}
/
*
docs/
mv
${
9
^^
}
/
*
docs/
sed
-i
's/'
${
9
^^
}
'\///g'
_nav.yml
sed
-i
's/'
${
9
^^
}
'\///g'
_nav.yml
...
...
This diff is collapsed.
Click to expand it.
toMkdocs/toMkdocs.py
+
2
−
0
View file @
8c01eec8
...
@@ -344,6 +344,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
...
@@ -344,6 +344,8 @@ def prepareForMkdocs(clauses:list[Clause], includeHangingParagraphs:bool = False
print
(
f
'
[yellow]Hanging paragraph in clause
"
{
clause
.
title
}
"
{
"
(removed)
"
if
not
includeHangingParagraphs
else
"
(kept)
"
}
'
)
print
(
f
'
[yellow]Hanging paragraph in clause
"
{
clause
.
title
}
"
{
"
(removed)
"
if
not
includeHangingParagraphs
else
"
(kept)
"
}
'
)
if
not
includeHangingParagraphs
:
if
not
includeHangingParagraphs
:
clauses
[
i
].
lines
=
[]
clauses
[
i
].
lines
=
[]
else
:
clauses
[
i
].
lines
=
[
Line
(
"
<mark>Editor note: This is a hanging paragraph and it must be moved to its own clause</mark>
"
)]
+
clauses
[
i
].
lines
# Repair wrong markdown for indented lines.
# Repair wrong markdown for indented lines.
# Add 2 spaces to existing 2-space indentions
# Add 2 spaces to existing 2-space indentions
...
...
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