Skip to content

Commit

Permalink
Installing mkdocs material broke the symlink between the readme and t…
Browse files Browse the repository at this point in the history
…he docs index. After trying several other plugins which didn't work I switched to using symbolic linking. This doensn't work on Windows, but I added a note in the readme for Windows folks. This seems to be the recommended solution by the mkdocs folks: mkdocs/mkdocs#1250.
  • Loading branch information
rachelfenn committed Nov 20, 2024
1 parent c843efa commit 1431e10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ GenParse is a Python library for constrained generation with language models, sp

> **⚠️ Warning:** This library is currently in active development. We recommend frequently pulling the latest version to stay updated with improvements and bug fixes. Please report any bugs in [the issue tracker](https://github.com/probcomp/genparse/issues).
First time here? Go to our [Full Documentation](https://genparse.gen.dev/).
First time here? Go to our [Full Documentation](https://genparse.gen.dev/).

> **💡Tip**: Note that the documentation index is symlinked from the README.md file. If you are on a Windows machine you will need to symlink the README.md file to docs/index.md before building the docs.
## Installation

Expand Down Expand Up @@ -81,7 +83,8 @@ Genparse currently supports the following HuggingFace language models. If you wo
| gpt2-medium | gpt2-medium |
| gpt2-large | gpt2-large |

> **💡Tip**: Adding a `mock-` prefix to a language model name will create an imitation language model over the same vocabulary that can be used for testing (e.g., `mock-gpt2`). In practice, these models can be useful for rapid prototyping with minimal hardware.

Adding a `mock-` prefix to a language model name will create an imitation language model over the same vocabulary that can be used for testing (e.g., `mock-gpt2`). In practice, these models can be useful for rapid prototyping with minimal hardware.


## Development
Expand Down
1 change: 0 additions & 1 deletion docs/index.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/index.md
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ nav:
- Troubleshooting: troubleshooting.md
theme:
name: material
plugins:
- include-markdown
palette:
scheme: slate
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
'maturin', # for rust parser
'psutil',
'mkdocs',
'mkdocs-include-markdown-plugin',
'mkdocs-material',
]

Expand Down

0 comments on commit 1431e10

Please sign in to comment.