Skip to content

Commit

Permalink
Merge pull request huggingface#1214 from huggingface/new-examples
Browse files Browse the repository at this point in the history
Better examples
  • Loading branch information
thomwolf authored Sep 9, 2019
2 parents 3401980 + 3f91338 commit 995e38b
Show file tree
Hide file tree
Showing 6 changed files with 368 additions and 688 deletions.
7 changes: 7 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ pip install recommonmark

## Building the documentation

Make sure that there is a symlink from the `example` file (in /examples) inside the source folder. Run the followig
command to generate it:

```bash
ln -s ../../examples/README.md source/examples.md
```

Once you have setup `sphinx`, you can build the documentation by running the following command in the `/docs` folder:

```bash
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
urllib3==1.25.3
sphinx-markdown-tables==0.0.9
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
'sphinx.ext.coverage',
'sphinx.ext.napoleon',
'recommonmark',
'sphinx.ext.viewcode'
'sphinx.ext.viewcode',
'sphinx_markdown_tables'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
Loading

0 comments on commit 995e38b

Please sign in to comment.