Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eSSIF-Lab framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ESSIF-Lab
eSSIF-Lab framework
Commits
bfa2621e
Commit
bfa2621e
authored
Oct 29, 2020
by
Peter Langenkamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only include files where the type attribute in the docusaurus header is either concept or term
parent
0260e893
Pipeline
#17196
failed with stage
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
plugins/terminology-parser/index.js
plugins/terminology-parser/index.js
+3
-1
No files found.
plugins/terminology-parser/index.js
View file @
bfa2621e
...
...
@@ -122,7 +122,7 @@ async function getGlossaryTerms(files) {
//gather all metadata
let
{
metadata
}
=
parseMD
(
content
)
//keep only the required keys
if
(
metadata
.
title
)
{
if
(
metadata
.
title
&&
(
metadata
.
type
==
"
concept
"
||
metadata
.
type
==
"
term
"
)
)
{
let
glossaryContent
=
metadata
.
glossaryText
;
if
(
glossaryContent
)
{
...
...
@@ -163,6 +163,8 @@ async function getGlossaryTerms(files) {
glossaryText
:
glossaryContent
,
filepath
:
filepath
.
slice
(
1
,
-
3
),
});
}
else
{
console
.
log
(
metadata
.
type
);
}
}
return
arr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment