Skip to content

Commit

Permalink
New html for modified gitea.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
fazlerabbi37 committed Oct 8, 2018
1 parent 21285ce commit 37470e2
Show file tree
Hide file tree
Showing 33 changed files with 12,331 additions and 534 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 3170581c3e85376ea1eb8e4b0a8d8e0f
config: a8a1504044b928ef0866501124000853
tags: 645f666f9bcd5a90fca523b33c5a78b7
25 changes: 21 additions & 4 deletions docs/_sources/gitea.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,27 @@ Now restart the Apache server::

Gitea should be available at ``https://your-domain.ltd/gitea/`` address.

Add reStructuredText(rST) perser
--------------------------------
.. warning:: Here to render rST we are using ``rst2html.py`` tool. ``rst2html.py`` is a part of docutils tools which can be installed in Ubuntu 16.04 using the following command ``sudo apt install docutils-doc docutils-common``.

Gitea can support Markup using external tools. The example below will add a markup named `reStructuredText(rST) <http://docutils.sourceforge.net/rst.html>`_. Open ``/etc/apache2/sites-available/gitea.conf`` file::

sudo nano /etc/apache2/sites-available/gitea.conf

Add the following at the bottom::

[markup.rst]
ENABLED = true
FILE_EXTENSIONS = .rst,.rest,.restx
RENDER_COMMAND = "rst2html.py --no-raw"
IS_INPUT_FILE = false


Source
------
- https://docs.gitea.io/en-us/install-from-binary/
- https://docs.gitea.io/en-us/linux-service/
- https://docs.gitea.io/en-us/reverse-proxies/
- https://github.com/go-gitea/gitea/issues/4537
- `Installation from binary <https://docs.gitea.io/en-us/install-from-binary>`_
- `Run as service in Ubuntu 16.04 LTS <https://docs.gitea.io/en-us/linux-service>`_
- `Using Apache HTTPD as a reverse proxy <https://docs.gitea.io/en-us/reverse-proxies>`_
- `Could not load cert file with Let's Encrypt apache <https://github.com/go-gitea/gitea/issues/4537>`_
- `Configuration Cheat Sheet: Markup <https://docs.gitea.io/en-us/config-cheat-sheet>`_
140 changes: 27 additions & 113 deletions docs/_static/alabaster.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,14 @@






































@import url("basic.css");

/* -- page layout ----------------------------------------------------------- */

body {
font-family: 'goudy old style', 'minion pro', 'bell mt', Georgia, 'Hiragino Mincho Pro', serif;
font-size: 17px;
background-color: #fff;
background-color: white;
color: #000;
margin: 0;
padding: 0;
Expand Down Expand Up @@ -89,7 +54,7 @@ hr {
}

div.body {
background-color: #fff;
background-color: #ffffff;
color: #3E4349;
padding: 0 30px 0 30px;
}
Expand All @@ -111,7 +76,7 @@ div.footer a {
}

p.caption {
font-family: inherit;
font-family: ;
font-size: inherit;
}

Expand Down Expand Up @@ -267,15 +232,19 @@ div.body p, div.body dd, div.body li {
div.admonition {
margin: 20px 0px;
padding: 10px 30px;
background-color: #EEE;
border: 1px solid #CCC;
background-color: #FCC;
border: 1px solid #FAA;
}

div.admonition tt.xref, div.admonition code.xref, div.admonition a tt {
background-color: #FBFBFB;
div.admonition tt.xref, div.admonition a tt {
border-bottom: 1px solid #fafafa;
}

dd div.admonition {
margin-left: -60px;
padding-left: 60px;
}

div.admonition p.admonition-title {
font-family: 'Garamond', 'Georgia', serif;
font-weight: normal;
Expand All @@ -290,71 +259,25 @@ div.admonition p.last {
}

div.highlight {
background-color: #fff;
background-color: white;
}

dt:target, .highlight {
background: #FAF3E8;
}

div.warning {
background-color: #FCC;
border: 1px solid #FAA;
}

div.danger {
background-color: #FCC;
border: 1px solid #FAA;
-moz-box-shadow: 2px 2px 4px #D52C2C;
-webkit-box-shadow: 2px 2px 4px #D52C2C;
box-shadow: 2px 2px 4px #D52C2C;
}

div.error {
background-color: #FCC;
border: 1px solid #FAA;
-moz-box-shadow: 2px 2px 4px #D52C2C;
-webkit-box-shadow: 2px 2px 4px #D52C2C;
box-shadow: 2px 2px 4px #D52C2C;
}

div.caution {
background-color: #FCC;
border: 1px solid #FAA;
}

div.attention {
background-color: #FCC;
border: 1px solid #FAA;
}

div.important {
background-color: #EEE;
border: 1px solid #CCC;
}

div.note {
background-color: #EEE;
border: 1px solid #CCC;
}

div.tip {
background-color: #EEE;
border: 1px solid #CCC;
}

div.hint {
background-color: #EEE;
border: 1px solid #CCC;
}

div.seealso {
background-color: #EEE;
border: 1px solid #CCC;
}

div.topic {
background-color: #EEE;
background-color: #eee;
}

p.admonition-title {
Expand Down Expand Up @@ -389,16 +312,16 @@ tt.descname, code.descname {
}

img.screenshot {
-moz-box-shadow: 2px 2px 4px #EEE;
-webkit-box-shadow: 2px 2px 4px #EEE;
box-shadow: 2px 2px 4px #EEE;
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}

table.docutils {
border: 1px solid #888;
-moz-box-shadow: 2px 2px 4px #EEE;
-webkit-box-shadow: 2px 2px 4px #EEE;
box-shadow: 2px 2px 4px #EEE;
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}

table.docutils td, table.docutils th {
Expand Down Expand Up @@ -438,16 +361,6 @@ table.field-list p {
margin-bottom: 0.8em;
}

/* Cloned from
* https://github.com/sphinx-doc/sphinx/commit/ef60dbfce09286b20b7385333d63a60321784e68
*/
.field-name {
-moz-hyphens: manual;
-ms-hyphens: manual;
-webkit-hyphens: manual;
hyphens: manual;
}

table.footnote td.label {
width: .1px;
padding: 0.3em 0 0.3em 0.5em;
Expand Down Expand Up @@ -484,15 +397,16 @@ pre {
line-height: 1.3em;
}

div.viewcode-block:target {
background: #ffd;
}

dl pre, blockquote pre, li pre {
margin-left: 0;
padding-left: 30px;
}

dl dl pre {
margin-left: -90px;
padding-left: 90px;
}

tt, code {
background-color: #ecf0f3;
color: #222;
Expand All @@ -501,7 +415,7 @@ tt, code {

tt.xref, code.xref, a tt {
background-color: #FBFBFB;
border-bottom: 1px solid #fff;
border-bottom: 1px solid white;
}

a.reference {
Expand Down Expand Up @@ -603,7 +517,7 @@ a:hover tt, a:hover code {

div.documentwrapper {
float: none;
background: #fff;
background: white;
}

div.sphinxsidebar {
Expand All @@ -618,7 +532,7 @@ a:hover tt, a:hover code {

div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
div.sphinxsidebar h3 a {
color: #fff;
color: white;
}

div.sphinxsidebar a {
Expand Down
19 changes: 1 addition & 18 deletions docs/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,9 @@ div.sphinxsidebar input {
}

div.sphinxsidebar #searchbox input[type="text"] {
float: left;
width: 80%;
padding: 0.25em;
box-sizing: border-box;
}

div.sphinxsidebar #searchbox input[type="submit"] {
float: left;
width: 20%;
border-left: none;
padding: 0.25em;
box-sizing: border-box;
width: 170px;
}


img {
border: 0;
max-width: 100%;
Expand Down Expand Up @@ -211,11 +199,6 @@ table.modindextable td {

/* -- general body styles --------------------------------------------------- */

div.body {
min-width: 450px;
max-width: 800px;
}

div.body p, div.body dd, div.body li, div.body blockquote {
-moz-hyphens: auto;
-ms-hyphens: auto;
Expand Down
10,257 changes: 10,253 additions & 4 deletions docs/_static/jquery.js

Large diffs are not rendered by default.

Loading

0 comments on commit 37470e2

Please sign in to comment.