File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ # The "content" app
2
+
3
+ This application serves static, Markdown-based content. Django-wise there is
4
+ relatively little code in there; most of it is concerned with serving our
5
+ content.
6
+
7
+
8
+ ## Contributing pages
9
+
10
+ The Markdown files hosting our content can be found in the
11
+ [ ` resources/ ` ] ( ./resources ) directory. The process of contributing to pages is
12
+ covered extensively in our online guide which you can find
13
+ [ here] ( https://www.pythondiscord.com/pages/guides/pydis-guides/how-to-contribute-a-page/ ) .
14
+ Alternatively, read it directly at
15
+ [ ` resources/guides/pydis-guides/how-to-contribute-a-page.md ` ] ( ./resources/guides/pydis-guides/how-to-contribute-a-page.md ) .
16
+
17
+
18
+ ## Directory structure
19
+
20
+ Let's look at the structure in here:
21
+
22
+ - ` resources ` contains the static Markdown files that make up our site's
23
+ [ pages] ( https://www.pythondiscord.com/pages/ )
24
+
25
+ - ` tests ` contains unit tests for verifying that the app works properly.
26
+
27
+ - ` views ` contains Django views which generate and serve the pages from the
28
+ input Markdown.
29
+
30
+ As for the modules, apart from the standard Django modules in here, the
31
+ ` utils.py ` module contains utility functions for discovering Markdown files to
32
+ serve.
You can’t perform that action at this time.
0 commit comments