|
Pierre-Yves Chibon |
ddede6 |
{% extends "repo_master.html" %}
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
7639cf |
{% block title %}Docs - {{ repo.name }}{% endblock %}
|
|
Pierre-Yves Chibon |
ddede6 |
{%block tag %}home{% endblock %}
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
ddede6 |
{% block repo %}
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
026ad2 |
Docs
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% if repo_obj and repo_obj.is_empty %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
<section class="repo_info"></section>
|
|
Pierre-Yves Chibon |
026ad2 |
This repo is brand new!
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
If you already have a git repo:
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
b37254 |
git remote add origin {{ config.get('GIT_URL') }}:docs/{{ repo.fullname }}.git
|
|
Pierre-Yves Chibon |
026ad2 |
git push -u origin master
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
If you have no create your git repo yet:
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
b37254 |
git clone {{ config.get('GIT_URL') }}:docs/{{ repo.fullname }}.git
|
|
Pierre-Yves Chibon |
1157b1 |
cd {{ repo.name }}
|
|
Pierre-Yves Chibon |
026ad2 |
touch README.rst
|
|
Pierre-Yves Chibon |
026ad2 |
git add README.rst
|
|
Pierre-Yves Chibon |
026ad2 |
git commit -m "Add README file"
|
|
Pierre-Yves Chibon |
026ad2 |
git push -u origin master
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% else %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
4b7a7d |
|
|
Pierre-Yves Chibon |
026ad2 |
repo=repo.name, branchname=branchname) }}">
|
|
Pierre-Yves Chibon |
026ad2 |
{{ branchname }}/{% if filename %}{%
|
|
Pierre-Yves Chibon |
026ad2 |
for file in filename.split('/') %}
|
|
Pierre-Yves Chibon |
026ad2 |
{% if loop.first %}
|
|
Pierre-Yves Chibon |
026ad2 |
{% set path = file %}
|
|
Pierre-Yves Chibon |
ddede6 |
{% else %}
|
|
Pierre-Yves Chibon |
026ad2 |
{% set path = path + '/' + file %}
|
|
Pierre-Yves Chibon |
ddede6 |
{% endif %}
|
|
Pierre-Yves Chibon |
026ad2 |
{% if loop.index != loop.length %}
|
|
Pierre-Yves Chibon |
4b7a7d |
url_for('view_docs', username=username,
|
|
Pierre-Yves Chibon |
026ad2 |
repo=repo.name, branchname=branchname, filename=path) }}"
|
|
Pierre-Yves Chibon |
026ad2 |
>{{ file }}/{% else %}{{ file }}{% endif %}
|
|
Pierre-Yves Chibon |
026ad2 |
{% endfor %}{% endif %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% if tree %}
|
|
Pierre-Yves Chibon |
026ad2 |
<section class="tree_view"></section>
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% for entry in tree %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% if entry.filemode == 16384 %}
|
|
Pierre-Yves Chibon |
026ad2 |
[ ]
|
|
Pierre-Yves Chibon |
4b7a7d |
|
|
Pierre-Yves Chibon |
026ad2 |
repo=repo.name, branchname=branchname,
|
|
Pierre-Yves Chibon |
8c7c5f |
filename=filename + '/' + entry.name if filename and '/' in filename else entry.name) }}">
|
|
Pierre-Yves Chibon |
026ad2 |
{% else %}
|
|
Pierre-Yves Chibon |
4b7a7d |
|
|
Pierre-Yves Chibon |
026ad2 |
repo=repo.name, branchname=branchname,
|
|
Pierre-Yves Chibon |
8c7c5f |
filename=filename.rsplit('/', 1)[0] + '/' + entry.name if filename and '/' in filename else entry.name) }}">
|
|
Pierre-Yves Chibon |
026ad2 |
{% endif %}
|
|
Pierre-Yves Chibon |
026ad2 |
{{ entry.name }}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% endfor %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% endif %}
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% if content %}
|
|
Pierre-Yves Chibon |
366a66 |
<section class="docs_content"></section>
|
|
Pierre-Yves Chibon |
026ad2 |
{% autoescape false %}
|
|
Pierre-Yves Chibon |
026ad2 |
{{ content }}
|
|
Pierre-Yves Chibon |
026ad2 |
{% endautoescape %}
|
|
Pierre-Yves Chibon |
026ad2 |
|
|
Pierre-Yves Chibon |
026ad2 |
{% endif %}
|
|
Pierre-Yves Chibon |
e9ba09 |
|
|
Pierre-Yves Chibon |
e9ba09 |
<section class="git_links"></section>
|
|
Pierre-Yves Chibon |
e9ba09 |
git url: {{ config.get('GIT_URL') }}:{{ repo.fullname }}.git
|
|
Pierre-Yves Chibon |
e9ba09 |
|
|
Pierre-Yves Chibon |
040fa4 |
{% endif %}
|
|
Pierre-Yves Chibon |
ddede6 |
|
|
Pierre-Yves Chibon |
ddede6 |
{% endblock %}
|