Skip to content

Commit

Permalink
DOC: update docs after move to GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-h committed Sep 13, 2017
1 parent b96c362 commit 2b42e0b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/_ext/edit_on_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


def get_github_url(app, view, path):
github_fmt = 'https://github.com/{}/{}/{}/{}{}'
github_fmt = 'https://gitlab.com/{}/{}/{}/{}{}'
return (
github_fmt.format(app.config.edit_on_github_project, view,
app.config.edit_on_github_branch,
Expand Down
8 changes: 4 additions & 4 deletions docs/_templates/sourcelink.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
{%- if show_on_github_url %}
<li><a href="{{ show_on_github_url }}"
rel="nofollow">{{ _('Show on GitHub') }}</a></li>
<li class="toctree-l1"><a href="{{ show_on_github_url }}"
rel="nofollow">{{ _('Show on GitLab') }}</a></li>
{%- endif %}
{%- if edit_on_github_url %}
<li><a href="{{ edit_on_github_url }}"
rel="nofollow">{{ _('Edit on GitHub') }}</a></li>
<li class="toctree-l1"><a href="{{ edit_on_github_url }}"
rel="nofollow">{{ _('Edit on GitLab') }}</a></li>
{%- endif %}
</ul>
{%- endif %}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def linkcode_resolve(domain, info):

fn = os.path.relpath(fn, start=os.path.dirname(emiprep.__file__))

gh_emiprep_base_url = 'http://github.com/andreas-h/emiprep/'
gh_emiprep_base_url = 'http://gitlab.com/andreas-h/emiprep/'
if '+' in emiprep.__version__:
return gh_emiprep_base_url + 'blob/develop/emiprep/%s%s' % (
fn, linespec)
Expand Down
6 changes: 3 additions & 3 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Development of emiprep
Repository
==========

The emiprep repository lives at `GitHub
<https://github.com/andreas-h/emiprep>`__. Source code is managed using `Git
The emiprep repository lives at `GitLab
<https://gitlab.com/andreas-h/emiprep>`__. Source code is managed using `Git
<https://git-scm.com/>`__ version control. emiprep adopts the `branching model
by Vincent Driessen
<http://nvie.com/posts/a-successful-git-branching-model/>`__.
Expand All @@ -19,7 +19,7 @@ The simplest way to set up a development environment is via conda_:

.. code:: shell
$ git clone git@github.com:YOURUSERNAME/emiprep.git
$ git clone git@gitlab.com:YOURUSERNAME/emiprep.git
$ cd emiprep
$ conda create -n emiprep_dev --file requirements_dev.txt
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _check_requirements():
cmdclass=versioneer.get_cmdclass(),
description=('(yet another) emission pre-processor for '
'atmospheric chemistry models'),
url='https://github.com/andreas-h/emiprep/',
url='https://gitlab.com/andreas-h/emiprep/',
author='Andreas Hilboll',
author_email='[email protected]',
license='AGPLv3',
Expand Down

0 comments on commit 2b42e0b

Please sign in to comment.