Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lesson Template
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
prace-lessons
Lesson Template
Commits
dc40b463
Commit
dc40b463
authored
10 years ago
by
Greg Wilson
Browse files
Options
Downloads
Plain Diff
Merge branch 'core' into gh-pages
parents
283a0553
2fcac604
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
LICENSE.md
+1
-1
1 addition, 1 deletion
LICENSE.md
_includes/footer.html
+3
-3
3 additions, 3 deletions
_includes/footer.html
requirements.txt
+2
-0
2 additions, 0 deletions
requirements.txt
tools/filters/id4glossary.py
+5
-6
5 additions, 6 deletions
tools/filters/id4glossary.py
with
11 additions
and
10 deletions
LICENSE.md
+
1
−
1
View file @
dc40b463
---
layout
:
lesson
layout
:
page
title
:
Licenses
---
### Instructional Material
...
...
This diff is collapsed.
Click to expand it.
_includes/footer.html
+
3
−
3
View file @
dc40b463
<div
class=
"footer"
>
<a
class=
"label swc-blue-bg"
href=
"mailto:admin@software-carpentry.org"
>
Email
</a>
<a
class=
"label swc-blue-bg"
href=
"http://github.com/swcarpentry"
>
GitHub
</a>
<a
class=
"label swc-blue-bg"
href=
"http://software-carpentry.org"
>
Software Carpentry
</a>
<a
class=
"label swc-blue-bg"
href=
"https://github.com/swcarpentry/lesson-template"
>
Source
</a>
<a
class=
"label swc-blue-bg"
href=
"mailto:admin@software-carpentry.org"
>
Contact
</a>
<a
class=
"label swc-blue-bg"
href=
"LICENSE.html"
>
License
</a>
<a
class=
"bugreport label swc-blue-bg"
href=
"mailto:admin@software-carpentry.org?subject=bug%20in%20{{page.path}}"
>
Bug Report
</a>
</div>
This diff is collapsed.
Click to expand it.
requirements.txt
0 → 100644
+
2
−
0
View file @
dc40b463
CommonMark
pandocfilters
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tools/filters/id4glossary.py
+
5
−
6
View file @
dc40b463
...
...
@@ -24,12 +24,11 @@ def keyword2html(keyword_node):
def
id4glossary
(
key
,
value
,
format
,
meta
):
"""
Add id to keywords at glossary.
"""
if
"
subtitle
"
in
meta
and
pf
.
stringify
(
meta
[
'
subtitle
'
])
==
'
Reference
'
:
if
key
==
"
DefinitionList
"
:
for
definition
in
value
:
definition
[
0
]
=
keyword2html
(
definition
[
0
])
return
{
"
t
"
:
key
,
"
c
"
:
value
}
if
key
==
"
DefinitionList
"
:
for
definition
in
value
:
definition
[
0
]
=
keyword2html
(
definition
[
0
])
return
{
"
t
"
:
key
,
"
c
"
:
value
}
if
__name__
==
'
__main__
'
:
pf
.
toJSONFilter
(
id4glossary
)
This diff is collapsed.
Click to expand it.
Preview
0%
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