Metadata-Version: 2.1
Name: gaohn-dsa
Version: 0.0.1
Summary: DSA package.
Author-email: Gao Hongnan <hongnangao@gmail.com>
Project-URL: Homepage, https://github.com/gao-hongnan/gaohn-dsa
Project-URL: Bug Tracker, https://github.com/gao-hongnan/gaohn-dsa/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: matplotlib (==3.6.0)
Requires-Dist: numpy (==1.23.3)
Requires-Dist: pandas (==1.5.0)
Requires-Dist: seaborn (==0.12.0)
Requires-Dist: scipy (==1.9.1)
Requires-Dist: gaohn-common-utils
Provides-Extra: dev
Requires-Dist: black (==23.3.0) ; extra == 'dev'
Requires-Dist: pylint (==2.17.4) ; extra == 'dev'
Requires-Dist: cookiecutter (==2.1.1) ; extra == 'dev'
Requires-Dist: sphinx-proof (==0.1.3) ; extra == 'dev'
Requires-Dist: jupyter-book (==0.15.1) ; extra == 'dev'
Requires-Dist: myst-nb (==0.17.2) ; extra == 'dev'
Requires-Dist: sphinx-inline-tabs (==2022.1.2b11) ; extra == 'dev'
Requires-Dist: pytest (==7.2.0) ; extra == 'dev'
Requires-Dist: coverage (==7.0.5) ; extra == 'dev'
Requires-Dist: pytest-cov (==4.0.0) ; extra == 'dev'
Requires-Dist: ghp-import (==2.1.0) ; extra == 'dev'
Requires-Dist: myst-parser (==0.18.1) ; extra == 'dev'
Requires-Dist: Sphinx (==5.0.2) ; extra == 'dev'
Requires-Dist: sphinxcontrib-mermaid (==0.9.2) ; extra == 'dev'
Requires-Dist: mypy (==1.3.0) ; extra == 'dev'
Requires-Dist: isort (==5.12.0) ; extra == 'dev'
Requires-Dist: bandit (==1.7.5) ; extra == 'dev'
Requires-Dist: colorama (==0.4.4) ; extra == 'dev'

<div align="center">
<h1>Data Structures and Algorithm Documentation</a></h1>
by Hongnan Gao
Oct, 2022
<br>
</div>

This is the documentation for various data structures and algorithms concepts.

## Workflow

### Installation

```bash
~/gaohn                  $ git clone https://github.com/gao-hongnan/gaohn-dsa.git gaohn-dsa
~/gaohn                  $ cd gaohn-dsa
~/gaohn/gaohn-dsa        $ python -m venv <venv_name> && <venv_name>\Scripts\activate
~/gaohn/gaohn-dsa (venv) $ python -m pip install --upgrade pip setuptools wheel
~/gaohn/gaohn-dsa (venv) $ pip install -r requirements.txt
~/gaohn/gaohn-dsa (venv) $ pip install myst-nb==0.16.0
```

The reason for manual install of `myst-nb==0.16.0` is because it is not in sync
with the current jupyterbook version, I updated this feature to be able to show
line numbers in code cells.

### Setting up Continuous Integration

```bash
~/gaohn/gaohn-dsa (venv) $ mkdir -p .github/workflows .github/actions
```

```bash
~/gaohn/gaohn-dsa (venv) $ curl -o .github/actions/continuous-integration/action.yaml \
    https://raw.githubusercontent.com/gao-hongnan/common-utils/main/.github/actions/continuous-integration/template.yaml
```

```bash
~/gaohn/gaohn-dsa (venv) $ curl -o .github/workflows/continuous_integration.yaml \
    https://raw.githubusercontent.com/gao-hongnan/common-utils/main/.github/workflows/continuous_integration.yaml
```

Change the environment variable `PACKAGES_TO_CHECK` to `dsa` in
`.github/workflows/continuous_integration.yaml`.

### Building the book

After cloning, you can edit the books source files located in the `content/`
directory.

You run

```bash
~/gaohn (venv) $ jupyter-book build content/
```

to build the book, and

```bash
~/gaohn (venv) $ jupyter-book clean content/
```

to clean the build files.

A fully-rendered HTML version of the book will be built in
`content/_build/html/`.

## MyST NB

See
[config documentation](https://myst-nb.readthedocs.io/en/latest/configuration.html).
