Skip to content

Commit f265706

Browse files
authored
Merge pull request #693 from python-discord/readme-for-content-directory
Add a README for the content directory
2 parents 48550ac + 2bf8832 commit f265706

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

pydis_site/apps/content/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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.

pydis_site/apps/content/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)