Skip to content

Commit f653d77

Browse files
committed
Updated index.rst
1 parent 76272fe commit f653d77

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

docs/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Pygorithm
2+
3+
A fun way to learn algorithms on the Go!
4+
Just import the module and start learning, it's that easy.
5+
6+
```python
7+
8+
from pygorithm.sorting import bubble_sort
9+
10+
# This will print the code for bubble sort
11+
print(bubble_sort.get_code())
12+
13+
myList = [12, 4, 2, 14, 3, 7, 5]
14+
15+
# to sort the list
16+
sorted_list = bubble_sort.sort(myList)
17+
```

docs/conf.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# All configuration values have a default; values that are commented out
2+
# serve to show the default.
3+
4+
import sys
5+
import os
6+
import shlex
7+
8+
# If extensions (or modules to document with autodoc) are in another directory,
9+
# add these directories to sys.path here. If the directory is relative to the
10+
# documentation root, use os.path.abspath to make it absolute, like shown here.
11+
sys.path.insert(0, os.path.abspath('..'))
12+
13+
# -- General configuration ------------------------------------------------
14+
15+
# If your documentation needs a minimal Sphinx version, state it here.
16+
#needs_sphinx = '1.0'
17+
18+
# Add any Sphinx extension module names here, as strings. They can be
19+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
20+
# ones.
21+
extensions = [
22+
'sphinx.ext.autodoc',
23+
'sphinx.ext.coverage',
24+
'sphinx.ext.viewcode',
25+
]
26+
27+
# Add any paths that contain templates here, relative to this directory.
28+
templates_path = ['_templates']
29+
30+
# The suffix(es) of source filenames.
31+
# You can specify multiple suffix as a list of string:
32+
# source_suffix = ['.rst', '.md']
33+
source_suffix = '.md'
34+
35+
# The encoding of source files.
36+
#source_encoding = 'utf-8-sig'
37+
38+
# The master toctree document.
39+
master_doc = 'README'

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ Quick Start Guide
1313
::
1414

1515
from pygorithm.sorting import bubble_sort
16+
1617
# This will print the code for bubble sort
1718
print(bubble_sort.get_code())
1819

1920
myList = [12, 4, 2, 14, 3, 7, 5]
2021

2122
# to sort the list
22-
2323
sorted_list = bubble_sort.sort(myList)
2424

2525
---------------

0 commit comments

Comments
 (0)