Skip to content

Commit

Permalink
📝 Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoPerrier committed Dec 13, 2023
1 parent 9434875 commit cbab254
Show file tree
Hide file tree
Showing 47 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ runs/

# mkdocs documentation
/site
/docs/site
/tmp_docs/site

# mypy
.mypy_cache/
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ repos:
exclude: ^chart/
- id: debug-statements
- id: end-of-file-fixer
exclude: ^(docs/|gdocs/)
exclude: ^(tmp_docs/|gdocs/)
- id: pretty-format-json
args: ['--autofix']
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md']
exclude: ^(docs/|gdocs/)
exclude: ^(tmp_docs/|gdocs/)
- id: check-added-large-files
args: ['--maxkb=500']
- id: no-commit-to-branch
Expand All @@ -40,7 +40,7 @@ repos:
rev: 6.0.0
hooks:
- id: flake8
exclude: '^tests/|^docs'
exclude: '^tests/|^tmp_docs'
args: ['--ignore=E501,D2,D3,D4,D104,D100,D106,D107,W503,D105,E203']
additional_dependencies: [ flake8-docstrings, "flake8-bugbear==22.8.23" ]
- repo: https://github.com/pre-commit/mirrors-isort
Expand All @@ -56,7 +56,7 @@ repos:
- repo: https://github.com/asottile/blacken-docs
rev: v1.8.0
hooks:
- id: blacken-docs
- id: blacken-tmp_docs
additional_dependencies: [black==21.12b0]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ All new features can be found in the **full pipeline [tutorial](https://github.c

# Melusine

<!-- <img src=`docs/_static/melusine.png` width=`200`/> -->
![](docs/_static/melusine.png)
<!-- <img src=`tmp_docs/_static/melusine.png` width=`200`/> -->
![](tmp_docs/_static/melusine.png)

- Free software: Apache Software License 2.0
- Documentation: [https://melusine.readthedocs.io](https://melusine.readthedocs.io).
Expand All @@ -34,8 +34,8 @@ Use **Melusine** if you need a library which:

This package is designed for the preprocessing, classification and automatic summarization of emails written in french.

<!-- <img src=`docs/_static/schema_1.png` width=`600`/> -->
![](docs/_static/schema_1.png)
<!-- <img src=`tmp_docs/_static/schema_1.png` width=`600`/> -->
![](tmp_docs/_static/schema_1.png)

**3 main subpackages are offered :**

Expand Down Expand Up @@ -237,7 +237,7 @@ y_res = nn_model.predict(X)
```

Training with tensorflow 2 can be monitored using tensorboard :
![](docs/_static/tensorboard.png)
![](tmp_docs/_static/tensorboard.png)

## Glossary

Expand Down Expand Up @@ -312,7 +312,7 @@ To run the app, run the following command in your terminal in the melusine/data
streamlit run dashboard_app.py
```

![](docs/_static/demo_dashboard.gif)
![](tmp_docs/_static/demo_dashboard.gif)

### Ethics Guidelines

Expand All @@ -322,4 +322,4 @@ The document and criteria are derived in particular from the work of the Europea

The pdf file is located in the melusine/ethics_guidelines directory :

![](docs/_static/demo_ethics_guide.gif)
![](tmp_docs/_static/demo_ethics_guide.gif)
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
pytest_plugins = [
"tests.fixtures.backend",
"tests.fixtures.basic_emails",
"tests.fixtures.docs",
"tests.fixtures.tmp_docs",
"tests.fixtures.pipelines",
"tests.fixtures.processors",
]
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import pytest

# Package source root
docs_folder = Path(__file__).parents[2] / "docs"
docs_folder = Path(__file__).parents[2] / "tmp_docs"


@pytest.fixture
def add_docs_to_pythonpath() -> Generator[None, None, None]:
"""Testing"""
# Add docs to python path
# Add tmp_docs to python path
sys.path.insert(0, str(docs_folder))
yield None
8 changes: 4 additions & 4 deletions tests/processors/test_content_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def test_content_tagger_split_text(text, expected_parts):
),
(
(
"Merci de me faire suivre les docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris. "
"Merci de me faire suivre les tmp_docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris. "
"Merci d'avance. \nAcceptez notre salutation,"
),
[
("BODY", "Merci de me faire suivre les docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris."),
("BODY", "Merci de me faire suivre les tmp_docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris."),
("THANKS", "Merci d'avance."),
("GREETINGS", "Acceptez notre salutation,"),
],
Expand Down Expand Up @@ -234,13 +234,13 @@ def test_content_tagger_split_text(text, expected_parts):
(
"chère madame,\n"
"URGENT URGENT\n"
"Merci de me faire suivre les docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris. "
"Merci de me faire suivre les tmp_docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris. "
"Merci d'avance. \nRecevez nos salutations,\nVous en souhaitant bonne réception"
),
[
("HELLO", "chère madame,"),
("BODY", "URGENT URGENT"),
("BODY", "Merci de me faire suivre les docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris."),
("BODY", "Merci de me faire suivre les tmp_docs à ma nouvelle adresse qui est 0 rue du parc, 75000 Paris."),
("THANKS", "Merci d'avance."),
("GREETINGS", "Recevez nos salutations,"),
("GREETINGS", "Vous en souhaitant bonne réception"),
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion mkdocs.yml → tmp_mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ nav:

markdown_extensions:
mdx_include:
base_path: docs
base_path: tmp_docs
tables:
admonition:
# pymdownx.details:
Expand Down

0 comments on commit cbab254

Please sign in to comment.