Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Documentation Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Utilities
Documentation Manager
Compare revisions
792f1bd10e9ca989333e285dd6435099741b9685 to 80c98695734818b28e010155b7762e6ce2dc71ba
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
oss/utilities/documentation-manager
Select target project
No results found
80c98695734818b28e010155b7762e6ce2dc71ba
Select Git revision
Swap
Target
oss/utilities/documentation-manager
Select target project
oss/utilities/documentation-manager
1 result
792f1bd10e9ca989333e285dd6435099741b9685
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
fix: filesort
· d54e99d4
Volker Schukai
authored
2 years ago
d54e99d4
Bump version to 1.1.7
· 80c98695
Volker Schukai
authored
2 years ago
80c98695
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
application/source/document/files.go
+12
-3
12 additions, 3 deletions
application/source/document/files.go
application/source/document/html.go
+3
-4
3 additions, 4 deletions
application/source/document/html.go
release.json
+1
-1
1 addition, 1 deletion
release.json
with
16 additions
and
8 deletions
application/source/document/files.go
View file @
80c98695
...
...
@@ -5,6 +5,7 @@ package document
import
(
"errors"
"fmt"
"os"
"path"
"path/filepath"
...
...
@@ -40,13 +41,21 @@ func (m SourceFileMap) findByHash(hash string) *SourceFile {
func
buildFileMap
(
files
[]
*
SourceFile
)
(
SourceFileMap
,
[]
string
)
{
sort
.
Slice
(
files
,
func
(
i
,
j
int
)
bool
{
if
files
[
i
]
.
level
==
files
[
j
]
.
level
{
return
files
[
i
]
.
relSourcePath
<
files
[
j
]
.
relSourcePath
if
files
[
i
]
.
relSourcePath
==
files
[
j
]
.
relSourcePath
{
if
files
[
i
]
.
level
<
files
[
j
]
.
level
{
return
true
}
return
files
[
i
]
.
level
<
files
[
j
]
.
level
}
return
files
[
i
]
.
level
<
files
[
j
]
.
level
return
files
[
i
]
.
relSourcePath
<
files
[
j
]
.
relSourcePath
})
for
_
,
f
:=
range
files
{
fmt
.
Println
(
f
.
relSourcePath
,
f
.
level
)
}
keys
:=
make
([]
string
,
0
,
len
(
files
))
mapFiles
:=
make
(
map
[
string
]
*
SourceFile
)
for
_
,
file
:=
range
files
{
...
...
This diff is collapsed.
Click to expand it.
application/source/document/html.go
View file @
80c98695
...
...
@@ -239,12 +239,11 @@ func buildTree(body string) *Tree[DocumentNode] {
if
title
,
err
:=
s
.
Html
();
err
==
nil
{
aID
=
slug
.
Make
(
title
)
}
else
{
aID
=
""
+
e
.
DataAtom
.
String
()
+
"-"
+
randomID
()
}
s
.
SetAttr
(
"id"
,
aID
)
if
aID
==
""
{
aID
=
""
+
e
.
DataAtom
.
String
()
+
"-"
+
randomID
()
}
}
payload
:=
DocumentNode
{
...
...
This diff is collapsed.
Click to expand it.
release.json
View file @
80c98695
{
"version"
:
"1.1.
6
"
"version"
:
"1.1.
7
"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.