Skip to content

Commit 9733da8

Browse files
Merge pull request #78 from ekonstantinidis/docs-remove-raw
[docs] Remove "raw" from templates docs
2 parents 8177829 + 318e497 commit 9733da8

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

docs/templates.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,43 @@ source_filename: templates
55
### Create the template file
66
To edit the template you will have to create a `.html` file to override the original one. Inside your `templates` directory create a directory named `rest_framework_docs` and inside this create the file `docs.html`. You can then extend/override the default template.
77

8-
{% raw %}
98
{% extends "rest_framework_docs/base.html" %}
10-
{% endraw %}
119

1210

1311
### Default Blocks
1412

1513
##### Styles (CSS)
1614

17-
{% raw %}
1815
{% block style %}
1916
<link rel="stylesheet" href="{% static "path/to/custom/css/style.css" %}">
2017
{% endblock %}
21-
{% endraw %}
2218

2319
##### GitHub Badge
2420
To hide the GitHub badge from the page, just override it with an empty block.
2521

26-
{% raw %}{% block github_badge %}{% endblock %}{% endraw %}
22+
{% block github_badge %}{% endblock %}
2723

2824
##### Title
2925

30-
{% raw %}{% block title %}Project Name{% endblock %}{% endraw %}
26+
{% block title %}Project Name{% endblock %}
3127

3228
##### Logo
3329

34-
{% raw %}
3530
{% block logo %}
3631
<a class="navbar-brand" href="http://www.drfdocs.com/">DRF Docs</a>
3732
{% endblock %}
38-
{% endraw %}
3933

4034
##### Jumbotron
4135

42-
{% raw %}
4336
{% block jumbotron %}
4437
<div class="jumbotron">
4538
<h1>Project Title</h1>
4639
<h3>Documentantion of the project 'Example'.</h3>
4740
</div>
4841
{% endblock %}
49-
{% endraw %}
5042

5143
##### Footer
5244

53-
{% raw %}
5445
{% block footer %}
5546
<div class="footer">
5647
<div class="links">
@@ -61,13 +52,11 @@ To hide the GitHub badge from the page, just override it with an empty block.
6152
Copyright © 2015 Emmanouil Konstantinidis.
6253
</div>
6354
{% endblock %}
64-
{% endraw %}
6555

6656

6757
### Complete Example
6858
File location: `templates/rest_framework_docs/docs.html`
6959

70-
{% raw %}
7160
{% extends "rest_framework_docs/base.html" %}
7261

7362
{% block title %}Project Name{% endblock %}
@@ -81,5 +70,3 @@ File location: `templates/rest_framework_docs/docs.html`
8170
{% endblock %}
8271

8372
{% block footer %}<div class="footer">Copyright © 2016 Project Name.</div>{% endblock %}
84-
85-
{% endraw %}

0 commit comments

Comments
 (0)