Skip to content

Commit 938fd3a

Browse files
lukeruudginic
authored andcommitted
added requested changes to readme and changelog
1 parent 1985bf0 commit 938fd3a

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
You should also add project tags for each release in Github, see [Managing releases in a repository](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).
88

99
## [Unreleased]
10-
10+
- Added example auto-built Sphinx documentation in the `docs` folder
1111
## [1.0.0] - 2022-05-23
1212
### Added
1313
- README and CHANGELOG

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,37 @@ So what does each file in this repository do?
6363
```
6464
.
6565
├── cdstemplate # The python package root - Any code you'd like to be able to import lives here
66-
│   ├── corpus_counter_script.py # A script that takes a list of documents as input and outputs a CSV of word counts
67-
│   ├── __init__.py # Indicates that this directory is a python package, you can put special import instructions here
68-
   ├── word_count.py # A module that has functions and classes to import
69-
│   └── utils.py # A module that handles logging and other internals
66+
  ├── corpus_counter_script.py # A script that takes a list of documents as input and outputs a CSV of word counts
67+
  ├── __init__.py # Indicates that this directory is a python package, you can put special import instructions here
68+
   ├── word_count.py # A module that has functions and classes to import
69+
  └── utils.py # A module that handles logging and other internals
7070
├── CHANGELOG.md # Versioning information
7171
├── dag_workflow.png # An image that is linked to in this README
7272
├── data # Data files which may or may not be tracked in Git, but we reserve a folder for them so that users can all have the same relative paths
73-
│   ├── gutenberg # Sample text input files, the raw inputs to our experiment pipeline.
74-
│   └── gutenberg_counts.csv # The expected output file for our experiment. It's generated by `dvc repro` and is ignored by git.
73+
  ├── gutenberg # Sample text input files, the raw inputs to our experiment pipeline.
74+
  └── gutenberg_counts.csv # The expected output file for our experiment. It's generated by `dvc repro` and is ignored by git.
75+
├── docs # Sphinx auto-documentation uses this folder to run its scripts and store documentation
76+
  ├── _build # Contains the Sphinx doctree and html documentation source code
77+
├── doctrees # A folder with doctree construction information
78+
  └── html # A folder that contains the html code for all automatically created documentation
79+
  ├── _static # A folder that can contain static code
80+
  ├── _templates # A folder that can contain Sphinx templates
81+
├── conf.py # A function that configures Sphinx according to user specifications
82+
├── index.rst # A directory that users can input new functions into for auto-documentation
83+
├── make.bat # A function that runs auto-documentation
84+
└── Makefile # A function that creates html documentation based on functions in the index.rst file
7585
├── dvc.lock # Data Version Control uses this file to compare experiment versions. It's tracked in Git, but don't edit it manually.
7686
├── dvc.yaml # Create the Data Version Control pipeline stages here
7787
├── notebooks
78-
│   └── word_count_prototype.ipynb # A jupyter notebook that makes pretty plots
88+
  └── word_count_prototype.ipynb # A jupyter notebook that makes pretty plots
7989
├── pyproject.toml # The setuptools build tools are installed, so you project can be installed
8090
├── README.md # You're reading it now!
8191
├── setup.cfg # Project metadata and dependencies are declared for proper installation
8292
└── tests
8393
└── test_word_count.py # Unit and smoke tests for the word_count module
8494
├── .dvc # The configuration file for Data Version Control
8595
├── .github
86-
| └── workflows/python_package.yml # Github Workflow file, configures running tests on Github every time a pull request to the main branch is made
96+
└── workflows/python_package.yml # Github Workflow file, configures running tests on Github every time a pull request to the main branch is made
8797
├── .gitignore # Lists files that should not be included in version control, created from Github's template .gitignore for Python.
8898
└── .dvcignore # Lists files that Data Version Control should skip when checking for changes in stage dependencies.
8999
```
@@ -97,6 +107,7 @@ The README, CHANGELOG and docstrings are just as important.
97107
- _README.md_ : Summarize the project's purpose and give installation instructions.
98108
- _CHANGELOG.md_ : Tell the user what has changed between versions and why, see [Keep A CHANGELOG](https://keepachangelog.com/en/1.0.0/)
99109
- docstrings: Appear directly in your code and give an overview of each function or object. They can be printed using `help(object)` from the python interpreter or used to automatically generate API documentation with a tool like [Sphinx](https://www.sphinx-doc.org/en/master/index.html). There are many different docstring formats. Your team can choose any they like, just be consistent. This template uses [reStructuredText style](https://peps.python.org/pep-0287/).
110+
- Sphinx : Create html documentation for your functions based on the docstrings you write in the code. Use [Sphinx](https://www.sphinx-doc.org/en/master/index.html) to streamline the documentation process.
100111

101112
Read [Real Python's Documenting Python Code: A Complete Guide](https://realpython.com/documenting-python-code/) for more ideas about effectively documenting code. The `.md` files are written using [Markdown](https://www.markdownguide.org/), a handy formatting language that is automatically rendered in Github.
102113

0 commit comments

Comments
 (0)