diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 97bfe09a..b7436b54 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -156,7 +156,7 @@ def replace_contents(filename, what, replacement): git init git add --all git commit -m "Add initial project skeleton." - git remote add origin git@{{ cookiecutter.repo_hosting }}.com:{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}.git + git remote add origin git@{{ cookiecutter.repo_hosting }}:{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}.git git push -u origin master {% if cookiecutter.test_matrix_configurator == "yes" %} diff --git a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst index 1b7b6687..fc8e7f8d 100644 --- a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst +++ b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst @@ -8,7 +8,7 @@ little bit helps, and credit will always be given. Bug reports =========== -When `reporting a bug `_ please include: +When `reporting a bug `_ please include: * Your operating system name and version. * Any details about your local setup that might be helpful in troubleshooting. @@ -24,7 +24,7 @@ articles, and such. Feature requests and feedback ============================= -The best way to send feedback is to file an issue at https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues. +The best way to send feedback is to file an issue at https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues. If you are proposing a feature: @@ -37,11 +37,11 @@ Development To set up `{{ cookiecutter.repo_name }}` for local development: -1. Fork `{{ cookiecutter.repo_name }} `_ +1. Fork `{{ cookiecutter.repo_name }} `_ (look for the "Fork" button). 2. Clone your fork locally:: - git clone git@{{ cookiecutter.repo_hosting }}.com:{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}.git + git clone git@{{ cookiecutter.repo_hosting }}:{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}.git 3. Create a branch for local development:: diff --git a/{{cookiecutter.repo_name}}/README.rst b/{{cookiecutter.repo_name}}/README.rst index 8aa9ae96..aa2d6324 100644 --- a/{{cookiecutter.repo_name}}/README.rst +++ b/{{cookiecutter.repo_name}}/README.rst @@ -81,7 +81,7 @@ Overview {% if cookiecutter.repo_hosting == "github" %} .. |commits-since| image:: https://img.shields.io/{{ cookiecutter.repo_hosting }}/commits-since/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/v{{ cookiecutter.version }}.svg :alt: Commits since latest release - :target: https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/compare/v{{ cookiecutter.version }}...master + :target: https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/compare/v{{ cookiecutter.version }}...master {% endif %} .. |wheel| image:: https://img.shields.io/pypi/wheel/{{ cookiecutter.distribution_name }}.svg :alt: PyPI Wheel diff --git a/{{cookiecutter.repo_name}}/docs/conf.py b/{{cookiecutter.repo_name}}/docs/conf.py index a7a636b2..0dfa006a 100644 --- a/{{cookiecutter.repo_name}}/docs/conf.py +++ b/{{cookiecutter.repo_name}}/docs/conf.py @@ -31,8 +31,8 @@ pygments_style = 'trac' templates_path = ['.'] extlinks = { - 'issue': ('https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues/%s', '#'), - 'pr': ('https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/pull/%s', 'PR #'), + 'issue': ('https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues/%s', '#'), + 'pr': ('https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/pull/%s', 'PR #'), } {%- if cookiecutter.sphinx_theme != 'sphinx-rtd-theme' %} @@ -40,7 +40,7 @@ html_theme = "{{ cookiecutter.sphinx_theme|replace('-', '_') }}" html_theme_path = [{{ cookiecutter.sphinx_theme|replace('-', '_') }}.get_html_theme_path()] html_theme_options = { - 'githuburl': 'https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/' + 'githuburl': 'https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/' } {%- else %} # on_rtd is whether we are on readthedocs.org diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py index bc1d6d1e..b7835bfb 100644 --- a/{{cookiecutter.repo_name}}/setup.py +++ b/{{cookiecutter.repo_name}}/setup.py @@ -111,7 +111,7 @@ def _unavailable(self, e): author={{ '{0!r}'.format(cookiecutter.full_name).lstrip('ub') }}, author_email={{ '{0!r}'.format(cookiecutter.email).lstrip('ub') }}, {%- if cookiecutter.repo_hosting != "no" %} - url='https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}', + url='https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}', {%- endif %} packages=find_packages('src'), package_dir={'': 'src'}, @@ -159,9 +159,9 @@ def _unavailable(self, e): 'Documentation': 'https://{{ cookiecutter.repo_name|replace('.', '') }}.readthedocs.io/', 'Changelog': 'https://{{ cookiecutter.repo_name|replace('.', '') }}.readthedocs.io/en/latest/changelog.html', {%- else %} - 'Changelog': 'https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/blob/master/CHANGELOG.rst', + 'Changelog': 'https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/blob/master/CHANGELOG.rst', {%- endif %} - 'Issue Tracker': 'https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues', + 'Issue Tracker': 'https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues', }, {%- endif %} keywords=[