Skip to content

Commit 4466b90

Browse files
committed
Updated README.md
1 parent fd02874 commit 4466b90

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
import sys
55
import os
66
import shlex
7+
from recommonmark.parser import CommonMarkParser
8+
9+
source_parsers = {
10+
'.md': CommonMarkParser,
11+
}
712

813
# If extensions (or modules to document with autodoc) are in another directory,
914
# add these directories to sys.path here. If the directory is relative to the
@@ -29,8 +34,8 @@
2934

3035
# The suffix(es) of source filenames.
3136
# You can specify multiple suffix as a list of string:
32-
# source_suffix = ['.rst', '.md']
33-
source_suffix = '.md'
37+
source_suffix = ['.rst', '.md']
38+
# source_suffix = '.rst'
3439

3540
# The encoding of source files.
3641
#source_encoding = 'utf-8-sig'

docs/index.rst

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

0 commit comments

Comments
 (0)