Skip to content

Commit

Permalink
find . -type f -exec sed --in-place 's/{{ cookiecutter.repo_hosting }…
Browse files Browse the repository at this point in the history
…}\.com/{{ cookiecutter.repo_hosting }}/g' {} \;
  • Loading branch information
dHannasch committed Aug 30, 2019
1 parent b59d0e2 commit 0873e84
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand Down
8 changes: 4 additions & 4 deletions {{cookiecutter.repo_name}}/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ little bit helps, and credit will always be given.
Bug reports
===========

When `reporting a bug <https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues>`_ please include:
When `reporting a bug <https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}/issues>`_ please include:

* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
Expand All @@ -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:

Expand All @@ -37,11 +37,11 @@ Development

To set up `{{ cookiecutter.repo_name }}` for local development:

1. Fork `{{ cookiecutter.repo_name }} <https://{{ cookiecutter.repo_hosting }}.com/{{ cookiecutter.repo_username }}/{{ cookiecutter.repo_name }}>`_
1. Fork `{{ cookiecutter.repo_name }} <https://{{ cookiecutter.repo_hosting }}/{{ cookiecutter.repo_username }}/{{ 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::

Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.repo_name}}/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
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' %}
import {{ cookiecutter.sphinx_theme|replace('-', '_') }}
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
Expand Down
6 changes: 3 additions & 3 deletions {{cookiecutter.repo_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down Expand Up @@ -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=[
Expand Down

0 comments on commit 0873e84

Please sign in to comment.