Skip to content

Commit eb66959

Browse files
committed
Support to Read The Docs
1 parent 4b16742 commit eb66959

29 files changed

+173
-22
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.directory
2+
.DS_Store
23

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
recommonmark

rtfd/Makefile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

rtfd/make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
33+
34+
:end
35+
popd

rtfd/source/conf.py

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# http://www.sphinx-doc.org/en/master/config
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = 'OmniDB'
21+
copyright = 'The OmniDB Team'
22+
author = 'The OmniDB Team'
23+
24+
# The full version, including alpha/beta/rc tags
25+
release = '2.15.0'
26+
27+
# Path to the initial page
28+
master_doc = 'index'
29+
30+
31+
# -- General configuration ---------------------------------------------------
32+
33+
# Add any Sphinx extension module names here, as strings. They can be
34+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
35+
# ones.
36+
extensions = ['recommonmark']
37+
38+
# Add any paths that contain templates here, relative to this directory.
39+
templates_path = ['_templates']
40+
41+
# List of patterns, relative to source directory, that match files and
42+
# directories to ignore when looking for source files.
43+
# This pattern also affects html_static_path and html_extra_path.
44+
exclude_patterns = []
45+
46+
47+
# -- Options for HTML output -------------------------------------------------
48+
49+
# The theme to use for HTML and HTML Help pages. See the documentation for
50+
# a list of builtin themes.
51+
#
52+
html_theme = 'sphinx_rtd_theme'
53+
54+
# Add any paths that contain custom static files (such as style sheets) here,
55+
# relative to this directory. They are copied after the builtin static files,
56+
# so a file named "default.css" will overwrite the builtin "default.css".
57+
html_static_path = ['_static']

rtfd/source/en

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../src/en/

rtfd/source/index.rst

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
The OmniDB Handbook
2+
===================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
:caption: Contents:
7+
8+
en/01_introduction.md
9+
en/02_installation.md
10+
en/03_creating_users_and_connections.md
11+
en/04_managing_databases.md
12+
en/05_creating_changing_and_removing_tables.md
13+
en/06_managing_table_data.md
14+
en/07_writing_sql_queries.md
15+
en/08_visualizing_query_plans.md
16+
en/09_visualizing_data.md
17+
en/10_managing_other_elements.md
18+
en/11_additional_features.md
19+
en/12_omnidb_config_tool.md
20+
en/13_writing_and_debugging_plpgsql_functions.md
21+
en/14_monitoring_dashboard.md
22+
en/15_logical_replication.md
23+
en/16_pglogical.md
24+
en/17_postgres-bdr.md
25+
en/18_postgres-xl.md
26+
en/19_deploying_omnidb-server.md
27+
en/20_console_tab.md
28+
en/21_plugin_system.md
29+
en/22_advanced_object_search.md
30+
31+
Indices and tables
32+
==================
33+
34+
* :ref:`genindex`
35+
* :ref:`modindex`
36+
* :ref:`search`

src/en/01_introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: [William Ivanski, Rafael Thofehrn Castro, Israel Barth Rubio]
44
date: "2ndQuadrant"
55
...
66

7-
# Introduction
7+
# 1. Introduction
88

99
**OmniDB** is an open source browser-based app designed to access and manage
1010
many different Database Management systems, e.g. PostgreSQL, Oracle and MySQL.

src/en/02_installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installation
1+
# 2. Installation
22

33
OmniDB provides 2 kinds of packages to fit every user needs:
44

src/en/03_creating_users_and_connections.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Creating Users and Connections
1+
# 3. Creating Users and Connections
22

33
#### Logging in as user *admin*
44

src/en/04_managing_databases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Managing Databases
1+
# 4. Managing Databases
22

33
After creating a connection you can select it by clicking in the *Select
44
Connection* action in the connections grid. You will see that the connection

src/en/05_creating_changing_and_removing_tables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Creating, Changing and Removing Tables
1+
# 5. Creating, Changing and Removing Tables
22

33
#### Creating tables
44

src/en/06_managing_table_data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Managing Table Data
1+
# 6. Managing Table Data
22

33
The tool allows us to edit records contained in tables through a very simple and
44
intuitive interface. Given that only a few DBMS have unique identifiers for

src/en/07_writing_sql_queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Writing SQL Queries
1+
# 7. Writing SQL Queries
22

33
The most common kind of inner tab is the *Query Tab*, containing the following
44
elements:

src/en/08_visualizing_query_plans.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Visualizing Query Plans
1+
# 8. Visualizing Query Plans
22

33
OmniDB 2.2.0 introduced a very useful feature: graphical query plan
44
visualization. This may come in handy when writing or optimizing queries, since

src/en/09_visualizing_data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Visualizing Data
1+
# 9. Visualizing Data
22

33
This feature displays a graph with nodes representing tables and edges
44
representing table relationships with foreign keys. Using the mouse, the user is

src/en/10_managing_other_elements.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Managing other Elements
1+
# 10. Managing other Elements
22

33
All PostgreSQL structures are possible to be managed with the use of
44
*SQL templates*. This gives the user more power than using graphical forms to

src/en/11_additional_features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Additional Features
1+
# 11. Additional Features
22

33
#### User Settings
44

src/en/12_omnidb_config_tool.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# OmniDB Config Tool
1+
# 12. OmniDB Config Tool
22

33
Every installation of OmniDB also comes with a small CLI utility called *OmniDB
44
Config*. It will have a different file name, depending on the way you installed

src/en/13_writing_and_debugging_plpgsql_functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Writing and Debugging PL/pgSQL Functions
1+
# 13. Writing and Debugging PL/pgSQL Functions
22

33
#### Introduction
44

src/en/14_monitoring_dashboard.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Monitoring Dashboard
1+
# 14. Monitoring Dashboard
22

33
OmniDB 2.4.0 introduced a new cool feature called *Monitoring Dashboard*. We
44
know a picture is worth a thousand words, so please take a look:

src/en/15_logical_replication.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Logical Replication
1+
# 15. Logical Replication
22

33
PostgreSQL 10 introduces native logical replication, which uses a
44
publish/subscribe model and so we can create publications on the upstream (or

src/en/16_pglogical.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pglogical
1+
# 16. pglogical
22

33
[pglogical](https://www.2ndquadrant.com/en/resources/pglogical/) is a PostgreSQL
44
extension that provides an advanced logical replication system that serves as a

src/en/17_postgres-bdr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Postgres-BDR
1+
# 17. Postgres-BDR
22

33
[Postgres-BDR](https://www.2ndquadrant.com/en/resources/bdr/) (or just **BDR**,
44
for short) is an open source project from 2ndQuadrant that provides multi-master

src/en/18_postgres-xl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Postgres-XL
1+
# 18. Postgres-XL
22

33
[Postgres-XL](https://www.2ndquadrant.com/en/resources/postgres-xl/) (or just
44
**XL**, for short) is an open source project from 2ndQuadrant. It is a massively

src/en/19_deploying_omnidb-server.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Deploying omnidb-server
1+
# 19. Deploying omnidb-server
22

33
Whenever deploying omnidb-server the user must be aware of how OmniDB works in
44
terms of ports so the environment can be properly configured taking the

src/en/20_console_tab.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Console Tab
1+
# 20. Console Tab
22

33
Introduced in OmniDB 2.6.0, the new OmniDB Console Tab provides an easy and
44
confortable way to interact with your databases. Users familiar with the `psql`

src/en/21_plugin_system.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Plugin System
1+
# 21. Plugin System
22

33
OmniDB 2.9 introduces the plugin system, a feature that allows users to develop and
44
share their own features that can be plugged into OmniDB without having to deploy

src/en/22_advanced_object_search.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Advanced Object Search
1+
# 22. Advanced Object Search
22

33
OmniDB 2.9 introduces the a Advanced Object Search feature, allowing users to
44
use an advanced pattern matching to search database objects and tables data. The

0 commit comments

Comments
 (0)