Skip to content

Commit ef10fa0

Browse files
updating docs
1 parent 0be751c commit ef10fa0

12 files changed

+331
-97
lines changed

docs/Makefile

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

docs/README.md

-94
This file was deleted.

docs/command_line_usage.rst

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Command line usages
2+
=========
3+
4+
`Random Profile Generator` can be used as a command line tool.
5+
It can be used to generate a random profile and save it to a file.
6+
It can also be used to generate a random profile and print it to the console.
7+
8+
Usages:
9+
10+
.. code-block:: bash
11+
12+
random-profile --help
13+
Usage: random-profile [OPTIONS]
14+
15+
random-profile -n 10 -p
16+
17+
optional arguments:
18+
-h, --help show this help message and exit
19+
-n N Number of random profiles
20+
21+
-f, --fullname Get full name instead of first name
22+
-p, --profile Get full profile instead of first name
23+
-l, --lastname Get last name instead of first name
24+
-ip, --ipv4 Get an ipv4 IP address
25+
-j, --jobtitle Get job title
26+
27+
Get Random Profile:
28+
------------
29+
30+
.. code-block:: bash
31+
32+
# n = number of random profiles, p = profile
33+
random_profile -n 10 -p
34+
35+
Get First Name:
36+
------------
37+
38+
.. code-block:: bash
39+
40+
# n = number of random profiles, f = first name
41+
random_profile -n 10 -f
42+
43+
Get Last Name:
44+
------------
45+
46+
.. code-block:: bash
47+
48+
# n = number of random profiles, l = last name
49+
random_profile -n 10 -l
50+
51+
Get Job Title:
52+
------------
53+
54+
.. code-block:: bash
55+
56+
# n = number of random profiles, j = job title
57+
random_profile -n 10 -j
58+
59+
Get IPv4 Address:
60+
------------
61+
62+
.. code-block:: bash
63+
64+
# n = number of random profiles, ip = ipv4
65+
random_profile -n 10 -ip
66+
67+
Get Random Profile and Save to File:
68+
------------
69+
70+
.. code-block:: bash
71+
72+
# n = number of random profiles, p = profile
73+
random_profile -n 10 -p > random_profiles.txt
74+
75+
Get Random Profile version:
76+
------------
77+
78+
.. code-block:: bash
79+
80+
random_profile --version
81+
82+
random-profile 0.2.3

docs/conf.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from datetime import datetime
2+
3+
project = 'audiobook'
4+
copyright = '2022, Deeapk Raj'
5+
author = 'Deeapk Raj'
6+
release = '2.0.4'
7+
8+
extensions = [
9+
'sphinx.ext.autosectionlabel'
10+
]
11+
12+
releases_github_path = "Py-Contributors/RandomProfileGenerator"
13+
14+
autosectionlabel_prefix_document = True
15+
16+
templates_path = ['_templates']
17+
source_suffix = ".rst"
18+
master_doc = "index"
19+
year = datetime.now().year
20+
copyright = "{} Deepak Raj".format(year)
21+
22+
html_theme = 'sphinx_rtd_theme' # 'pydata_sphinx_theme' 'alabaster'
23+
24+
html_static_path = ['_static']
25+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.venv']
26+
html_sidebars = { '**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'] }

docs/import_as_module.rst

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Import as module
2+
------------
3+
4+
You can import the module and use it in your own scripts.
5+
6+
.. code-block:: python
7+
8+
from random_profile import RandomProfile
9+
rp = RandomProfile()
10+
11+
# For first name
12+
rp.first_name(num=10)
13+
14+
# For full name
15+
rp.full_name(num=8)
16+
17+
# override the num value
18+
rp.full_profile(num=10)
19+
20+
# For last name
21+
rp.last_name(num=6)

docs/index.rst

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
.. RandomProfileGenerator documentation master file, created by
3+
sphinx-quickstart on Sat Oct 29 16:13:30 2022.
4+
You can adapt this file completely to your liking, but it should at least
5+
contain the root `toctree` directive.
6+
.. rst-class:: hide-header
7+
8+
Welcome to RandomProfileGenerator's documentation!
9+
=====================================
10+
11+
|PyPI download month|
12+
13+
.. |PyPI download month| image:: https://img.shields.io/pypi/dm/RandomProfileGenerator.svg
14+
:target: https://pypi.python.org/pypi/RandomProfileGenerator/
15+
16+
|PyPI version fury.io|
17+
18+
.. |PyPI version fury.io| image:: https://badge.fury.io/py/RandomProfileGenerator.svg
19+
:target: https://pypi.python.org/pypi/RandomProfileGenerator/
20+
21+
|Open Source Love svg3|
22+
23+
.. |Open Source Love svg3| image:: https://badges.frapsoft.com/os/v3/open-source.svg?v=103
24+
:target: https://github.com/ellerbrock/open-source-badges/
25+
26+
.. image:: https://raw.githubusercontent.com/DrakeEntity/project-Image/master/9b2ca712-347a-4987-bac7-a4c3d106ed24_200x200.png
27+
:width: 200
28+
:alt: Py-Contributors Logo
29+
:align: right
30+
31+
32+
`RandomProfileGenerator` is a powerful and simple tool to generate fake data.
33+
You can use it to mock classes, populate databases and much more.
34+
You can check the full documentation here.
35+
36+
RandomProfileGenerator project developed under the MIT license by Py-Contributors.
37+
Py-Contributors is open source community of developers who are working on various python projects.
38+
39+
If you love open source contributions.
40+
41+
* Join the community on `Discord <https://discord.gg/JfbK3bS>`_.
42+
* join the community on `Github <https://github.com/Py-Contributors/support/issues/new?assignees=&labels=invite+me+to+the+organisation&template=invite.yaml&title=Please+invite+me+to+the+GitHub+Community+Organization>`_.
43+
44+
Other Projects by Py-Contributors:
45+
--------------
46+
47+
* `AudioBook <https://audiobook.readthedocs.io/en/latest//>`_
48+
* `Cybel - The Discord Bot <https://github.com/Py-Contributors/Cybel>`_
49+
* `Twitterify - Tweet-retweet bot <https://github.com/Py-Contributors/twitterify>`_
50+
51+
|forthebadge made-with-python|
52+
53+
.. |forthebadge made-with-python| image:: http://ForTheBadge.com/images/badges/made-with-python.svg
54+
:target: https://www.python.org/
55+
56+
57+
.. toctree::
58+
:hidden:
59+
60+
introduction.rst
61+
installation.rst
62+
command_line_usage.rst
63+
import_as_module.rst
64+
changelog.rst
65+
roadmap.rst
66+
run_test_cases.rst
67+
68+

docs/installation.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Installation
2+
=========
3+
4+
Install Via Pip(recommended):
5+
------------
6+
7+
.. code-block:: bash
8+
9+
pip install random-profile # using pip
10+
conda install random-profile # using anaconda
11+
12+
13+
Install from Source(Unreleased):
14+
------------
15+
16+
.. code-block:: bash
17+
18+
git clone https://github.com/Py-Contributors/RandomProfileGenerator
19+
cd RandomProfileGenerator
20+
python setup.py install
21+
22+
Test Installation:
23+
------------
24+
25+
.. code-block:: bash
26+
27+
random_profile --help
28+
29+

docs/introduction.rst

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Introduction
2+
=========
3+
4+
`RandomProfileGenerator` is a powerful and simple tool to generate fake data.
5+
You can use it to mock classes, populate databases and much more.
6+
You can check the full documentation here. It is written in python and is compatible with python 3.7+.
7+
It is also compatible with Windows, Linux and Mac OS X.
8+
9+
Use cases
10+
11+
- Mocking classes
12+
- Populating databases
13+
- Generating test data
14+
- Generating fake data for your application
15+
- Generating fake data for your tests
16+
- Generating fake data for your documentation
17+
- Generating fake data for your presentation
18+
- Generating fake data for your demo
19+
- Generating fake data for your blog post
20+
21+
Upcoming features
22+
------------
23+
24+
- Support for more languages (Javascript)
25+
26+

0 commit comments

Comments
 (0)