facebookresearch / metaseq

Repo for external large-scale work
MIT License
6.51k stars 726 forks source link

feat: add demonstration of Sphinx documentation system #732

Open mattmazzola opened 1 year ago

mattmazzola commented 1 year ago

⚠️ This PR is not intended to be merged directly, but to demonstrate documentation from our fork ⚠️

Issue

Current documentation in Metaseq repo is very minimal.

We also had the intention of publishing results to 3rd parties and wanted the pages to look more professional than viewing a file of repository.

Solution

Testing steps

There were some errors during docs generation since we don't have correct dependencies and can't properly embed/generate docs from metaseq.cli.validate but the concept should work for a real Metaseq environment

Visuals

Screenshot of Demo Docs

image

Video

https://github.com/facebookresearch/metaseq/assets/2856501/f3375b7e-3bd5-48e8-a7f2-d7c27b80be8e

Development on Documentation

Terminal A:

make serve

(Open URL and view index.html)

image

Terminal B:

make watch

Regenerates documentation after file changes

Related to #726

Mentioning @tupini07 for awareness and possible assistance to answer questions