Skip to content

Commit 8cb5504

Browse files
committed
Replace all .rst with .md
1 parent 56ee541 commit 8cb5504

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Troubleshooting
22

3-
> **Note:** Can you help improve this file? [Edit this file](https://github.com/audreyfeldroy/cookiecutter-pypackage/blob/master/docs/troubleshooting.rst) and submit a pull request with your improvements!
3+
> **Note:** Can you help improve this file? [Edit this file](https://github.com/audreyfeldroy/cookiecutter-pypackage/blob/master/docs/troubleshooting.md) and submit a pull request with your improvements!
44
55
## Windows Issues
66

docs/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tutorial
22

3-
> **Note:** Did you find any of these instructions confusing? [Edit this file](https://github.com/audreyfeldroy/cookiecutter-pypackage/blob/master/docs/tutorial.rst) and submit a pull request with your improvements!
3+
> **Note:** Did you find any of these instructions confusing? [Edit this file](https://github.com/audreyfeldroy/cookiecutter-pypackage/blob/master/docs/tutorial.md) and submit a pull request with your improvements!
44
55
To start with, you will need a [GitHub account](https://github.com/) and an account on [PyPI](https://pypi.python.org/pypi). Create these before you get started on this tutorial. If you are new to Git and GitHub, you should probably spend a few minutes on some of the tutorials at the top of the page at [GitHub Help](https://help.github.com/).
66

hooks/post_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33

44
if __name__ == "__main__":
55
if "{{ cookiecutter.create_author_file }}" != "y":
6-
pathlib.Path("AUTHORS.rst").unlink()
7-
pathlib.Path("docs", "authors.rst").unlink()
6+
pathlib.Path("AUTHORS.md").unlink()
7+
pathlib.Path("docs", "authors.md").unlink()

tests/test_bake_project.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@ def test_bake_with_apostrophe_and_run_tests(cookies):
108108
def test_bake_without_author_file(cookies):
109109
with bake_in_temp_dir(cookies, extra_context={"create_author_file": "n"}) as result:
110110
found_toplevel_files = [f.basename for f in result.project.listdir()]
111-
assert "AUTHORS.rst" not in found_toplevel_files
111+
assert "AUTHORS.md" not in found_toplevel_files
112112
doc_files = [f.basename for f in result.project.join("docs").listdir()]
113-
assert "authors.rst" not in doc_files
113+
assert "authors.md" not in doc_files
114114

115115
# Assert there are no spaces in the toc tree
116-
docs_index_path = result.project.join("docs/index.rst")
116+
docs_index_path = result.project.join("docs/index.md")
117117
with open(str(docs_index_path)) as index_file:
118118
assert "contributing\n history" in index_file.read()
119119

120120
# Check that
121121
manifest_path = result.project.join("MANIFEST.in")
122122
with open(str(manifest_path)) as manifest_file:
123-
assert "AUTHORS.rst" not in manifest_file.read()
123+
assert "AUTHORS.md" not in manifest_file.read()
124124

125125

126126
def test_make_help(cookies):
@@ -154,7 +154,7 @@ def test_bake_not_open_source(cookies):
154154
found_toplevel_files = [f.basename for f in result.project.listdir()]
155155
assert "pyproject.toml" in found_toplevel_files
156156
assert "LICENSE" not in found_toplevel_files
157-
assert "License" not in result.project.join("README.rst").read()
157+
assert "License" not in result.project.join("README.md").read()
158158

159159

160160
def test_using_pytest(cookies):
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% if cookiecutter.create_author_file == 'y' -%}
2-
include AUTHORS.rst
2+
include AUTHORS.md
33
{% endif -%}
4-
include CONTRIBUTING.rst
5-
include HISTORY.rst
4+
include CONTRIBUTING.md
5+
include HISTORY.md
66
include LICENSE
7-
include README.rst
7+
include README.md
88

99
recursive-include tests *
1010
recursive-exclude * __pycache__
1111
recursive-exclude * *.py[co]
1212

13-
recursive-include docs *.rst Makefile make.bat *.jpg *.png *.gif
13+
recursive-include docs *.md Makefile make.bat *.jpg *.png *.gif

{{cookiecutter.project_slug}}/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ coverage: ## check code coverage quickly with the default Python
6767
$(BROWSER) htmlcov/index.html
6868

6969
docs: ## generate Sphinx HTML documentation, including API docs
70-
rm -f docs/{{ cookiecutter.project_slug }}.rst
71-
rm -f docs/modules.rst
70+
rm -f docs/{{ cookiecutter.project_slug }}.md
71+
rm -f docs/modules.md
7272
sphinx-apidoc -o docs/ {{ cookiecutter.project_slug }}
7373
$(MAKE) -C docs clean
7474
$(MAKE) -C docs html
7575
$(BROWSER) docs/_build/html/index.html
7676

7777
servedocs: docs ## compile the docs watching for changes
78-
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
78+
watchmedo shell-command -p '*.md' -c '$(MAKE) -C docs html' -R -D .
7979

8080
release: dist ## package and upload a release
8181
twine upload dist/*

{{cookiecutter.project_slug}}/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "{{cookiecutter.project_slug}}"
77
description = "{{cookiecutter.project_short_description}}"
8-
readme = "README.rst"
8+
readme = "README.md"
99
authors = [
1010
{name = "{{cookiecutter.full_name}}", email = "{{cookiecutter.email}}"}
1111
]

0 commit comments

Comments
 (0)