Skip to content

Commit

Permalink
Edited docs index
Browse files Browse the repository at this point in the history
  • Loading branch information
TurconiAndrea committed Jan 8, 2022
1 parent b5147b3 commit b5227a2
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 20 deletions.
9 changes: 5 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys

sys.path.insert(0, os.path.abspath("."))


# -- Project information -----------------------------------------------------

project = "recipe tagger"
project = "Recipe Tagger"
copyright = "2022, Andrea Turconi"
author = "Andrea Turconi"

Expand Down
19 changes: 3 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,14 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to recipe tagger's documentation!
Recipe Tagger's documentation!
=========================================

This package provides a classification, a tagging system and a water footprint calculator for ingredients and recipes.
The functioning of the package is based on a dataset containing more than 700 ingredients mapped with their own class and water footprint. If a provided ingredient is not mapped into the dataset, the library search for it on wikipedia pages, into the dictionary and into NLTK Wordnet to find the best possible class. The water footprint is computed based on its ingredients. Every ingredient has a water footprint, measured in l/kg.

An ingredient could be classified in one of the following class:
- Vegetable
- Fruit
- Legume
- Meat
- Egg
- Diary
- Staple
- Condiment
- Nut
- Seafood
- Snack
- Mushroom
- Dessert
- Beverage
An ingredient could be classified in one of the following class: Vegetable, Fruit, Legume, Meat, Egg, Diary, Staple,
Condiment, Nut, Seafood, Snack, Mushroom, Dessert, Beverage.

A recipe is tagged based on its ingredients class. The library also provides a function to get the class percentage of recipe ingredients.

Expand Down
9 changes: 9 additions & 0 deletions docs/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
food-recipe-tagger
==================

.. toctree::
:maxdepth: 4

recipe_tagger
setup
tests
45 changes: 45 additions & 0 deletions docs/recipe_tagger.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
recipe\_tagger package
======================

Submodules
----------

recipe\_tagger.foodcategory module
----------------------------------

.. automodule:: recipe_tagger.foodcategory
:members:
:undoc-members:
:show-inheritance:

recipe\_tagger.recipe\_tagger module
------------------------------------

.. automodule:: recipe_tagger.recipe_tagger
:members:
:undoc-members:
:show-inheritance:

recipe\_tagger.recipe\_waterfootprint module
--------------------------------------------

.. automodule:: recipe_tagger.recipe_waterfootprint
:members:
:undoc-members:
:show-inheritance:

recipe\_tagger.util module
--------------------------

.. automodule:: recipe_tagger.util
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: recipe_tagger
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/setup.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
setup module
============

.. automodule:: setup
:members:
:undoc-members:
:show-inheritance:
37 changes: 37 additions & 0 deletions docs/tests.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
tests package
=============

Submodules
----------

tests.test\_recipe\_tagger module
---------------------------------

.. automodule:: tests.test_recipe_tagger
:members:
:undoc-members:
:show-inheritance:

tests.test\_recipe\_waterfootprint module
-----------------------------------------

.. automodule:: tests.test_recipe_waterfootprint
:members:
:undoc-members:
:show-inheritance:

tests.test\_util module
-----------------------

.. automodule:: tests.test_util
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: tests
:members:
:undoc-members:
:show-inheritance:

0 comments on commit b5227a2

Please sign in to comment.