Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
docs
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
Container 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
core
docs
Commits
59447b14
Commit
59447b14
authored
6 months ago
by
Artur Sabirov
Browse files
Options
Downloads
Patches
Plain Diff
check_sorting.py: fix function name and reindent
parent
c09f8f4e
No related branches found
No related tags found
1 merge request
!537
config.md: describe all configuration file parameters
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hooks/check_sorting.py
+3
-2
3 additions, 2 deletions
hooks/check_sorting.py
with
3 additions
and
2 deletions
hooks/check_sorting.py
+
3
−
2
View file @
59447b14
...
...
@@ -16,7 +16,7 @@ def on_page_markdown(markdown: str, page: Page, config: MkDocsConfig, files: Fil
elif
page
.
file
.
src_uri
==
"
reference/audit_events.md
"
:
return
reference_audit_events
(
markdown
,
page
)
elif
page
.
file
.
src_uri
==
"
architecture/rpc_api.md
"
:
return
referenc
e_rpc_api
(
markdown
,
page
)
return
architectur
e_rpc_api
(
markdown
,
page
)
def
reference_cli
(
markdown
:
str
,
page
:
Page
):
...
...
@@ -52,7 +52,8 @@ def reference_audit_events(markdown: str, page: Page):
diff
=
difflib
.
unified_diff
(
h3
,
h3_sorted
)
log
.
info
(
"
\n
"
+
"
\n
"
.
join
(
diff
))
def
reference_rpc_api
(
markdown
:
str
,
page
:
Page
):
def
architecture_rpc_api
(
markdown
:
str
,
page
:
Page
):
lines
:
list
[
str
]
=
re
.
sub
(
"
<!--.*?-->
"
,
""
,
markdown
,
flags
=
re
.
DOTALL
).
split
(
"
\n
"
)
headers
:
list
[
str
]
=
list
(
filter
(
lambda
line
:
re
.
match
(
"
^##+
"
,
line
),
lines
))
...
...
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