Skip to content

Commit

Permalink
upgrade docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed May 21, 2024
1 parent fba2d27 commit 7ad543d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
19 changes: 17 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx_copybutton',
'autoapi.extension',
]

autosummary_generate = True

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
Expand All @@ -23,5 +36,7 @@
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']

autoapi_dirs = ['../angle_emb']
10 changes: 10 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ AnglE is also a general sentence embedding inference framework, allowing for inf
:maxdepth: 2
:caption: Contents:

notes/quickstart.rst
notes/installation.rst
notes/pretrained_models.rst
notes/training.rst
notes/citation.rst


.. toctree::
:maxdepth: 1
:caption: APIs:
2 changes: 1 addition & 1 deletion docs/notes/installation.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Installation
⬇️ Installation
================================


Expand Down
6 changes: 3 additions & 3 deletions docs/notes/pretrained_models.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
🏛️ Official Pretrained Models
===========================
================================



BERT-based models:
------------------
------------------------------

+------------------------------------+-------------+-------------------+--------------------------+
| 🤗 HF | Max Tokens | Pooling Strategy | Scenario |
Expand All @@ -19,7 +19,7 @@ BERT-based models:


LLM-based models:
-----------------
------------------------------

+------------------------------------+-----------------------------+------------------+--------------------------+------------------+---------------------------------+
| 🤗 HF (lora weight) | Backbone | Max Tokens | Prompts | Pooling Strategy | Scenario |
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sphinx
sphinx-rtd-theme
sphinx-copybutton
sphinx-autoapi

0 comments on commit 7ad543d

Please sign in to comment.