Skip to content

Commit d65d40d

Browse files
committed
orgnize doc
1 parent c2fffb8 commit d65d40d

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

docs/conf.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def setup(app):
6868
html_static_path = ["_static"]
6969

7070
html_favicon = "_static/favicon_64x64.png"
71-
# html_logo = "_static/high-res-icon.png"
71+
html_logo = "_static/high-res-icon.png"
7272
html_theme_options = {
7373
"icon": {
7474
"repo": "fontawesome/brands/github",
@@ -77,7 +77,12 @@ def setup(app):
7777
"site_url": "https://github.com/lancedb/lance",
7878
"repo_url": "https://github.com/lancedb/lance",
7979
"repo_name": "Lance",
80-
80+
"features": [
81+
"navigation.expand",
82+
# "navigation.tabs",
83+
"content.tabs.link",
84+
"content.code.copy",
85+
],
8186
"social": [
8287
{
8388
"icon": "fontawesome/brands/github",

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Preview releases receive the same level of testing as regular releases.
3939

4040

4141
.. toctree::
42-
:caption: Quickstart
42+
:caption: Introduction
4343
:maxdepth: 2
4444

4545
Quickstart <./notebooks/quickstart>

docs/tokenizer.rst

+10-9
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ It also supports configuring user dictionaries,
1414
which makes it convenient for users to expand their own dictionaries without retraining the language models.
1515

1616
Language Models of Jieba
17-
---------------
17+
------------------------
1818

1919
Downloading the Model
20-
~~~~~~~~~~~
20+
~~~~~~~~~~~~~~~~~~~~~
2121

2222
.. code-block:: bash
23+
2324
python -m lance.download jieba
2425
2526
The language model is stored by default in `${LANCE_LANGUAGE_MODEL_HOME}/jieba/default`.
2627

2728
Using the Model
28-
~~~~~~~~~~~
29+
~~~~~~~~~~~~~~~
2930

3031
.. code-block:: python
3132
ds.create_scalar_index("text", "INVERTED", base_tokenizer="jieba/default")
3233
3334
User Dictionaries
34-
~~~~~~~~~~~
35+
~~~~~~~~~~~~~~~~~
3536
Create a file named config.json in the root directory of the current model.
3637

3738
.. code-block:: json
@@ -46,10 +47,10 @@ Create a file named config.json in the root directory of the current model.
4647

4748

4849
Language Models of Lindera
49-
---------------
50+
--------------------------
5051

5152
Downloading the Model
52-
~~~~~~~~~~~
53+
~~~~~~~~~~~~~~~~~~~~~
5354

5455
.. code-block:: bash
5556
@@ -60,14 +61,14 @@ Note that the language models of Lindera need to be compiled. Please install lin
6061
The language model is stored by default in ${LANCE_LANGUAGE_MODEL_HOME}/lindera/[ipadic|ko-dic|unidic]
6162

6263
Using the Model
63-
~~~~~~~~~~~
64+
~~~~~~~~~~~~~~~
6465

6566
.. code-block:: python
6667
6768
ds.create_scalar_index("text", "INVERTED", base_tokenizer="lindera/ipadic")
6869
6970
User Dictionaries
70-
~~~~~~~~~~~
71+
~~~~~~~~~~~~~~~~~
7172

7273
Create a file named config.json in the root directory of the current model.
7374

@@ -84,7 +85,7 @@ Create a file named config.json in the root directory of the current model.
8485

8586

8687
Create your own language model
87-
---------------
88+
------------------------------
8889

8990
Put your language model into `LANCE_LANGUAGE_MODEL_HOME`.
9091

0 commit comments

Comments
 (0)