Repository

DDC Day Book: Configuration

Structure and configuration of documentation repositories.

Page contents

Structure

Repositories used for curriculum GitHub Pages sites follow one primary structure, with an alternative structure permitted.

Primary

In this structure, the docs directory must be specified as the GitHub Pages source directory in the GitHub repository settings.

Alternative

If a repository does not contain any Java code, but only the instructional content to be published via GitHub Pages, then this structure is permitted:

Here, the repository root must be configured as the GitHub Pages source directory.

Documentation

Each site repository must include a README.md file, containing:

Example

This is the Markdown content of the README.md file in the Recursion module (note that since there is no source code in the repository, there is no Apache 2.0 license statement):

# Recursion

## Overview

An introduction to recursion in Java, using two well-known problems:

* Computing factorials.

* Testing strings to determine whether they are palindromes.

This is a curriculum module of the [Deep Dive Coding](https://deepdivecoding.com/) [Java + Android bootcamp](https://deepdivecoding.com/java-android/).

## Credits & copyright

This curriculum module was written by Nick Bennett, with Todd Nordquist and Rishita Hariyani.

© 2024 CNM Ingenuity, Inc. All rights reserved.

When viewing the repository in GitHub, this is displayed as

Recursion

Overview

An introduction to recursion in Java, using two well-known problems:

  • Computing factorials.

  • Testing strings to determine whether they are palindromes.

This is a curriculum module of the Deep Dive Coding Java + Android bootcamp.

This curriculum module was written by Nick Bennett, with Todd Nordquist and Rishita Hariyani.

© 2024 CNM Ingenuity, Inc. All rights reserved.

License

Open source

If the repository includes any source code (apart, that is, from the Markdown sources of the site pages), the current DDC position is to permit use of the source code under the Apache 2.0 license. Thus, if there is any such source code in the repository, the Apache 2.0 license must be referenced in README.md (see above), and as a header comment in all source files; also, the full license text must be included in the repository in a LICENSE file.

Closed source

For instructional content that isn’t source code, CNMI reserves all rights, without any license granted. This copyright notice is automatically displayed in the footer of all pages using this theme. As noted above, it must also be included in README.md. Since no license is granted, there’s no need to include an additional license file in the repository.

Settings