Skip to content

Commit

Permalink
Hardcode repository urls to untie templates from the config and simpl…
Browse files Browse the repository at this point in the history
…ify migration to rust
  • Loading branch information
AMDmi3 committed Sep 16, 2024
1 parent 3ade1e5 commit c7b5b9e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions repologyapp/templates/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ <h1 class="page-header">{% block header %}{% endblock %}</h1>
<div class="container">
<p class="pull-right footer-links">
GitHub repositories:
<a href="{{ config['REPOLOGY_WEBAPP_REPO_URL'] }}">webapp</a>,
<a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}">updater</a>,
<a href="{{ config['REPOLOGY_RULES_REPO_URL'] }}">ruleset</a>
<a href="https://github.com/repology/repology-webapp">webapp</a>,
<a href="https://github.com/repology/repology-updater">updater</a>,
<a href="https://github.com/repology/repology-rules">ruleset</a>
</p>
<p>
Copyright (C) 2016-2024 Dmitry Marakasov &lt;<a href="mailto:amdmi3@amdmi3.ru" rel="author">amdmi3@amdmi3.ru</a>&gt;.<br>
Expand Down
6 changes: 3 additions & 3 deletions repologyapp/templates/docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ <h3>Development</h3>
<p>Repology is developed on GitHub.</p>

<ul>
<li>Web application (the one you're currently browsing) <a href="{{ config['REPOLOGY_WEBAPP_REPO_URL'] }}">code</a>, <a href="{{ config['REPOLOGY_WEBAPP_REPO_URL'] }}/issues">issues</a> and <a href="{{ config['REPOLOGY_WEBAPP_REPO_URL'] }}/pulls">pull requests</a>.</li>
<li>Updater backend (responsible for fetching and processing package data) <a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}">code</a>, <a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}/issues">issues</a> and <a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}/pulls">pull requests</a>.</li>
<li>Ruleset <a href="{{ config['REPOLOGY_RULES_REPO_URL'] }}">code</a>, <a href="{{ config['REPOLOGY_RULES_REPO_URL'] }}/issues">issues</a> and <a href="{{ config['REPOLOGY_RULES_REPO_URL'] }}/pulls">pull requests</a>.</li>
<li>Web application (the one you're currently browsing) <a href="https://github.com/repology/repology-webapp">code</a>, <a href="https://github.com/repology/repology-webapp/issues">issues</a> and <a href="https://github.com/repology/repology-webapp/pulls">pull requests</a>.</li>
<li>Updater backend (responsible for fetching and processing package data) <a href="https://github.com/repology/repology-updater">code</a>, <a href="https://github.com/repology/repology-updater/issues">issues</a> and <a href="https://github.com/repology/repology-updater/pulls">pull requests</a>.</li>
<li>Ruleset <a href="https://github.com/repology/repology-rules">code</a>, <a href="https://github.com/repology/repology-rules/issues">issues</a> and <a href="https://github.com/repology/repology-rules/pulls">pull requests</a>.</li>
</ul>

<p>Junior tasks include proofreading English texts (README, html templates), finding more mismatched packages and adding name transformation rules for them.</p>
Expand Down
10 changes: 5 additions & 5 deletions repologyapp/templates/docs/bots.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ <h4>repology-fetcher</h4>
fetches files it needs sequentially (e.g. it never does parallel requests).</p>

<p>You may find metadata on which repositories are fetched
<a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}/tree/master/repos.d">here</a>
<a href="https://github.com/repology/repology-updater/tree/master/repos.d">here</a>
and the fetcher code
<a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}/tree/master/repology/fetchers">here</a>.
<a href="https://github.com/repology/repology-updater/tree/master/repology/fetchers">here</a>.
</p>

<p>If you think the robot creates excess load on your site, feel free to drop an
<a href="{{ config['REPOLOGY_UPDATER_REPO_URL'] }}/issues/new">issue</a> in the GitHub.
<a href="https://github.com/repology/repology-updater/issues/new">issue</a> in the GitHub.
If Repology gets information on your repository through web API, we'd greatly
appreciate if you provide a regular dump of package information from your repository
(data used by Repology include package name, version, one-line summary, list of maintainers,
Expand All @@ -64,7 +64,7 @@ <h4>repology-linkchecker</h4>
consecutive requests to a single hostname, to ensure no excess site load is generated.</p>

<p>You may see the link checker source code
<a href="{{ config['REPOLOGY_LINKCHECKER_REPO_URL'] }}">here</a>.</p>
<a href="https://github.com/repology/repology-linkchecker">here</a>.</p>

<h4>repology-vulnupdater</h4>

Expand All @@ -77,7 +77,7 @@ <h4>repology-vulnupdater</h4>
are used to avoid refetching the files if they have not changed since the last request.</p>

<p>You may see the vulnupdater's source code
<a href="{{ config['REPOLOGY_VULNUPDATER_REPO_URL'] }}">here</a>.</p>
<a href="https://github.com/repology/repology-vulnupdater">here</a>.</p>

<h3>robots.txt policy</h3>

Expand Down
2 changes: 1 addition & 1 deletion repologyapp/templates/project/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<li>Some packages may use incorrect versions (for instance, picking "next" version number which was not released yet when packaging a git snapshot, or using dates and commit hashes instead of version numbers).</li>
</ul>

<p>Repology uses a set of manually edited rules to resolve these cases. You may submit a change to the <a href="{{ config['REPOLOGY_RULES_REPO_URL'] }}">ruleset</a> directly or use this form to suggest an improvement to the ruleset. Please only use this for problems which may be fixed by the ruleset (which are basically problems listed above).</p>
<p>Repology uses a set of manually edited rules to resolve these cases. You may submit a change to the <a href="https://github.com/repology/repology-rules">ruleset</a> directly or use this form to suggest an improvement to the ruleset. Please only use this for problems which may be fixed by the ruleset (which are basically problems listed above).</p>

{% else %}{# metapackage and metapackage.num_repos > 0 #}
<div class="alert alert-warning" role="alert">New reports for this project are disabled as it's no longer known by Repology. <a href="{{ url_for('metapackage', name=name) }}">See</a> possible reasons and directions.</div>
Expand Down

0 comments on commit c7b5b9e

Please sign in to comment.