{% extends "base.html" %} {% import "repo_tabs.html" as m %} {% block title %}{{ title }} · wiki · {{ repo.owner }}/{{ repo.name }}{% endblock %} {% block bodyattrs %} data-repo="{{ repo.url }}"{% endblock %} {% block tabs %}{% call m::tabs(repo, "wiki") %}{% endblock %} {% block content %} {% include "repo_backdrop.html" %}
{% if let Some(n) = notice %}

{{ n }}

{% endif %}

{{ title }}

{% if let Some(c) = last %}

{{ c.author.name }}{% if let Some(v) = c.via %} via {{ v.name }}{% endif %} edited this page · {{ revisions|plural("revision", "revisions") }}

{% endif %}
{% if can_edit %}{% if html.is_some() %}Edit{% endif %}New page{% endif %}
{% if let Some(h) = html %}
{{ h|safe }}
{% if can_edit %}

{% endif %} {% else if any %}

There is no page called {{ title }} yet.{% if can_edit %} Create it.{% endif %}

{% else %}

No wiki yet

A wiki is Markdown pages kept as an Oxygen repository of their own beside the code: every edit is a signed change, and it clones and pushes like any repository.

{% if can_edit %}

Write the first page

{% endif %}
oxy clone {{ shell.base_url }}/{{ repo.owner }}/{{ repo.name }}.wiki

Pages are Name.md at the root on main; _Sidebar.md is the sidebar. Web edits need a delegation to this hub's key, as code edits do.

{% endif %}
{% endblock %}