{# Copyright (C) 2013 Matthieu Caneill License: GNU Affero General Public License, version 3 or above. #} {% extends "base.html" %} {% block head %} {{ super() }} {% endblock %} {% block title %}URL scheme{% endblock %} {% block breadcrumbs %}doc / url scheme{% endblock %} {% block content %} {% set url_prefix = "http://" + config.DOMAIN %}

{{ self.title() }}

Search

Package search

You can simply point a package search query with the following URL: {{ url_prefix }}/search/query See example

File search

The URL for a SHAsum search is: {{ url_prefix }}/sha256/?checksum=sha256&package=packagename Specifying a package name is optional.

Code search

You can search within the code through tags. {{ url_prefix }}/ctag/?ctag=tag&package=packagename Specifying a package name is optional.

Package list

Alphabetically

{{ url_prefix }}/list/INT See example

By prefix

{{ url_prefix }}/prefix/prefix See example

Package versions

You can list the different versions of a package, accessing this URL: {{ url_prefix }}/src/packagename See example

Navigation within a package

You can list the files in a package or in a particular folder of a package, accessing one of these URLs: {{ url_prefix }}/src/packagename/version or: {{ url_prefix }}/api/src/packagename/latest to use automatically the latest available version of the package.
See example

{{ url_prefix }}/src/packagename/version/path/to/dir See example

Source code displaying

To simply display a source file: {{ url_prefix }}/src/packagename/version/path/to/file See example

To point a specific line in a source file: {{ url_prefix }}/src/packagename/version/path/to/file#LINT See example

If you want to embed a source code file in e.g. an iframe, use: {{ url_prefix }}/embed/file/packagename/version/path/to/file#LINT

To use with options: {{ url_prefix }}/src/packagename/version/path/to/file?opt1=val1&opt2=val2[...]#LINT

Available options

See complete example

Infobox

You can embed an infobox about a particular version of a package (the same infobox which appears when you browse a package) using: {{ url_prefix }}/embed/pkginfo/packagename/version

{% endblock %}