This page covers the structure of the CS Field Guide project. The following diagram will be helpful when reading the following sections:
│ ├── build/
│ ├── config/
│ ├── general/
│ ├── locale/
│ ├── resources/
│ ├── static/
│ ├── temp/
│ ├── templates/
│ ├── topics/
│ ├── utils/
│ ├── gulpfile.js
│ ├── make-interactive-thumbnails.js
│ ├── manage.py
│ └── package.json
The repository directory (or root directory) contains the following:
- This directory contains the Django web system for the CS Field Guide website. This includes all raw text content, images, resources, etc.
- This directory contains the documentation for the repository (which includes the file you are reading now).
- This directory contains subtitle files for CS Field Guide videos.
- This file contains an introduction and important information for the repository.
- This file details the MIT licence that covers the project infrastructure.
- This file details the Creative Commons Attribution-ShareAlike 4.0 International license.
This licence applies to Markdown files located within the
csfieldguide/chapters/content/directory and images under the
- This file details the Creative Commons Attribution-ShareAlike 4.0 International license. This licence applies to Markdown files located within the
- This file contains summaries of licences for third-party libraries or other resources that may be distributed under licences different than the CS Field Guide licence.
A full copy of their respective licences can be found in the
- This file contains summaries of licences for third-party libraries or other resources that may be distributed under licences different than the CS Field Guide licence. A full copy of their respective licences can be found in the
- Plus other files used for installation and repository configuration.
csfieldguide/ directory holds the Django web system and is split across the following directories:
- This directory holds the settings used by the Django system. It’s unlikely you’ll edit the contents of this directory unless you are changing the Django configuration (for example: adding a new application).
Django contains ‘applications’ which are Python packages that provide some set of features. Each large part/chunk of the CS Field Guide is a separate application. The project currently contains the following applications:
- This application contains webpages for generic pages on the website. For example the homepage.
- The core CS Field Guide content is split into chapters.
- Curriculum guides help teachers utilise CSFG material for specific curricula.
- This application stores all data related to interactives in the CS Field Guide.
- This application contains minor appendices such as the about and contributors pages. It also provides links to other important applications, like Interactives and the Glossary, but does not host any of them.
- This application contains the search functionality, including the search results page. This is currently only available in English.
Details on how to modify an application can be found within their relavent author and developer documentation pages.
The following directories are also required by the Django system:
- This directory contains all the HTML templates for the Django system.
The following directories are used when the server is running (for example: a script compiles the SCSS to CSS and saves it to the
build/ directory for serving on a webpage).
You should never save anything in these directories, as the contents are often overwritten and cleared.
csfieldguide/ directory also contains the following files:
- This file is where all gulp code belongs. This file is also where gulp tasks are defined.
- A script for generating interactive thumbnails.
- A file created by Django used to manage the Django web system. Don’t modify the contents of this file.
- npm’s configuration file for projects and modules. Here we include any dependencies the project has.