Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Courseware Tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
John Tinnerholm
Courseware Tutorial
Commits
8e5d54ac
Commit
8e5d54ac
authored
3 years ago
by
a-rusi
Browse files
Options
Downloads
Patches
Plain Diff
Fix documentation needing escapes for tags
parent
0e7aea1a
Branches
test
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
_plugins/attach_raw_tag.rb
+20
-0
20 additions, 0 deletions
_plugins/attach_raw_tag.rb
course/adding_a_quiz.md
+4
-4
4 additions, 4 deletions
course/adding_a_quiz.md
course/adding_content.md
+1
-1
1 addition, 1 deletion
course/adding_content.md
course/adding_slides.md
+1
-1
1 addition, 1 deletion
course/adding_slides.md
with
26 additions
and
6 deletions
_plugins/attach_raw_tag.rb
0 → 100644
+
20
−
0
View file @
8e5d54ac
module
Jekyll
class
RawTag
<
Liquid
::
Block
def
parse
(
tokens
)
@nodelist
||=
[]
@nodelist
.
clear
while
token
=
tokens
.
shift
if
token
=~
FullToken
if
block_delimiter
==
$1
end_tag
return
end
end
@nodelist
<<
token
if
not
token
.
empty?
end
end
end
end
Liquid
::
Template
.
register_tag
(
'raw'
,
Jekyll
::
RawTag
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
course/adding_a_quiz.md
+
4
−
4
View file @
8e5d54ac
...
@@ -39,7 +39,7 @@ We just created our first multiple choice quiz!
...
@@ -39,7 +39,7 @@ We just created our first multiple choice quiz!
To add it to our site, we'll get the `markdown` we got from the **Live Editor** and surround it with the `{% quiz %} {% endquiz %}` tags:
To add it to our site, we'll get the `markdown` we got from the **Live Editor** and surround it with the `{% quiz %} {% endquiz %}` tags:
```
markdown
```
markdown
{
{ "{{ quiz " }}}
}
{
% raw %}{% quiz %}{% endraw %
}
---
---
primary_color: steelblue
primary_color: steelblue
secondary_color: '#e8e8e8'
secondary_color: '#e8e8e8'
...
@@ -59,7 +59,7 @@ Which of these are `git` commands?
...
@@ -59,7 +59,7 @@ Which of these are `git` commands?
-
[ ] git delete
-
[ ] git delete
-
[x] git commit
-
[x] git commit
-
[ ] git pop
-
[ ] git pop
{
{ "{{ endquiz " }}}
}
{
% raw %}{% endquiz %}{% endraw %
}
```
```
This quiz will end up looking something like this:
This quiz will end up looking something like this:
...
@@ -91,7 +91,7 @@ Which of these are `git` commands?
...
@@ -91,7 +91,7 @@ Which of these are `git` commands?
You can add multiple questions to your quiz: just add the `markdown` underneath your previous quiz!
You can add multiple questions to your quiz: just add the `markdown` underneath your previous quiz!
```
markdown
```
markdown
{
{ "{{ quiz " }}}
}
{
% raw %}{% quiz %}{% endraw %
}
---
---
primary_color: steelblue
primary_color: steelblue
secondary_color: '#e8e8e8'
secondary_color: '#e8e8e8'
...
@@ -124,7 +124,7 @@ How can you modify your latest commit message?
...
@@ -124,7 +124,7 @@ How can you modify your latest commit message?
1.
[ ] git modify_commit_message
1.
[ ] git modify_commit_message
1.
[ ] git restore
1.
[ ] git restore
{
{ "{{ endquiz " }}}
}
{
% raw %}{% endquiz %}{% endraw %
}
```
```
Click on **Next** to move to the second question!
Click on **Next** to move to the second question!
...
...
This diff is collapsed.
Click to expand it.
course/adding_content.md
+
1
−
1
View file @
8e5d54ac
...
@@ -46,7 +46,7 @@ If you want to attach a file, you'll have to store it first.
...
@@ -46,7 +46,7 @@ If you want to attach a file, you'll have to store it first.
You can use of the one
*directories*
in the
`attached_files/`
directory.
You can use of the one
*directories*
in the
`attached_files/`
directory.
Let's add a
`.pdf`
file to our course: we'll have to store it in the
`attached_files/pdf`
directory.
Let's add a
`.pdf`
file to our course: we'll have to store it in the
`attached_files/pdf`
directory.
`{% attach_file {"file_name": "pdf/pro_git.pdf", "title":"Click here to download the Pro Git book"} %}`
`{%
raw %}{%
attach_file {"file_name": "pdf/pro_git.pdf", "title":"Click here to download the Pro Git book"}
%}{% endraw
%}`
Here's our page after adding all the content we previously mentioned:
Here's our page after adding all the content we previously mentioned:
...
...
This diff is collapsed.
Click to expand it.
course/adding_slides.md
+
1
−
1
View file @
8e5d54ac
...
@@ -51,7 +51,7 @@ Distributed means that all users have a copy of the repository instead of a cent
...
@@ -51,7 +51,7 @@ Distributed means that all users have a copy of the repository instead of a cent
Now we can attach our slides like we learned:
Now we can attach our slides like we learned:
`{% attach_file {"file_name": "slides_markdown/git_slides.pdf", "title":"Git slide deck"} %}`
`{%
raw %}{%
attach_file {"file_name": "slides_markdown/git_slides.pdf", "title":"Git slide deck"}
%}{% endraw
%}`
## Customizing your slides
## Customizing your slides
...
...
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