Skip to content

Commit abadd66

Browse files
authored
Merge pull request #484 from earthlab/docs-extrafiles
start at updating docs for extra_files
2 parents d50e0a3 + 9a174a0 commit abadd66

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`
88

99
[unreleased]
1010
------------
11+
- Update documentation to discuss using extra_files to modify gitignore and readme (@lwasser, #178)
1112
- Reorganize the functions for checking, validating, and generating access tokens to make testing easier (@kcranston, #460)
1213
- Remove old unused code from before the big redirection (@kcranston, #449, #465)
1314
- Reoganize github module into smaller chunks (@kcranston, #447)

docs/manage-assignments/new_assignment.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,32 @@ changes to files. The command to merge would look like::
8484

8585
abc-new-template assignment1 --mode merge --github
8686

87+
Extra Files: Readme and other Template Files
88+
=============================================
89+
GitHub repos normally have a ``Readme.md`` and a ``.gitignore`` file. The ``readme.md`` file
90+
provides a user with an overview of the repository. The ``.gitignore`` specifies files that
91+
should never be committed to git history. One example of such a file is a Jupyter Notebook
92+
``.ipynb_checkpoints`` file. This is a file that you may never want to be committed
93+
to git but that will always by in a directory where you are working on a
94+
Jupyter Notebook. By default, abc-classroom provides a standard ``readme.md`` and
95+
``.gitignore`` file that can be found in the ``extra_files`` directory that is created
96+
when you create a new class with abc-classroom. You can look at the default
97+
content contained within those files, on GitHub, here:
98+
https://github.com/earthlab/abc-classroom/tree/main/abcclassroom/example-data/extra_files
99+
100+
* To customize the ``readme.md`` file, you can edit the file within the ``extra_files`` directory.
101+
* To customize the ``.gitignore`` file, edit that file within the ``extra_files`` directory.
102+
103+
You can also add any files that you wish to that directory such as images, text
104+
files, etc. Any files within the ``extra_files`` directory will be added to a new
105+
template repository upon creating or updating a new assignment.
106+
107+
A few notes about how this works:
108+
109+
* Extra files will NOT be updated for older assignments when you create or update a new template. Only that new template will have the newest files.
110+
* Abc-classroom will add the assignment name to the top of the readme file.
111+
112+
87113
Text Editors and Git Commit Messages
88114
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89115
The default commit message used when you run

0 commit comments

Comments
 (0)