Skip to content

Commit 68620f6

Browse files
committed
contributing guidelines in docs
1 parent 4252510 commit 68620f6

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

CONTRIBUTING.md

+18-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For Priority Tag, you can use `[P0]`-`[P2]`, `[P0]` is the highest priority, whi
1111

1212
---
1313

14-
### :book: Pull Requests
14+
### 📕 Pull Requests
1515

1616
#### Uninstall pyvene from python library
1717
It becomes tricky if you have `pyvene` installed while debugging with this codebase, since imports can be easily messed up. Please run,
@@ -45,7 +45,7 @@ When checking in new code, please also consider to add new tests in the same PR.
4545
4646
```
4747

48-
### :beetle: Bug Reports and Other Issues
48+
### 🪲 Bug Reports and Other Issues
4949
Go to issues, and open with a title formatted as,
5050
```
5151
[Bug Fix] Short Title
@@ -55,5 +55,19 @@ For external requests (i.e., you are not in our core dev team), please use,
5555
[External] Short Title
5656
```
5757

58-
### :inbox_tray: Larger Feature Requests
59-
Please email us!
58+
### 📄 Documentation
59+
If making changes to documentation (in `docs/source`, deployed to GitHub Pages), please test your changes locally
60+
(ideally in a fresh Python environment):
61+
62+
```
63+
pip install -r requirements.txt
64+
pip install -r docs/requirements.txt
65+
cd docs
66+
make html
67+
python -m http.server
68+
```
69+
70+
Then navigate to [localhost:8000/build/html](http://localhost:8000/build/html).
71+
72+
### 📥 Larger Feature Requests
73+
Please email us!

docs/source/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
project = 'pyvene'
1414
copyright = '2024, Stanford NLP'
1515
author = 'Stanford NLP'
16-
release = '0.1'
16+
release = '0.1.2'
1717

1818
# -- General configuration ---------------------------------------------------
1919
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@@ -71,6 +71,12 @@
7171
'target': 'tutorials/pyvene_101.ipynb',
7272
'ignore': [],
7373
},
74+
'contributing': {
75+
'driver': 'copy_file',
76+
'source': os.path.abspath('../../CONTRIBUTING.md'),
77+
'target': 'guides/contributing.md',
78+
'ignore': [],
79+
},
7480
}
7581

7682
# -- Options for HTML output -------------------------------------------------

docs/source/index.rst

+8-7
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,9 @@ Star History
461461

462462
.. toctree::
463463
:hidden:
464-
:caption: API
465-
466-
api/core
467-
468-
.. toctree::
469-
:hidden:
470-
:caption: Extensions
464+
:caption: Guides
471465

466+
guides/contributing
472467
guides/ndif
473468

474469

@@ -498,6 +493,12 @@ Star History
498493
tutorials/advanced_tutorials/MQNLI
499494
tutorials/advanced_tutorials/Voting_Mechanism
500495

496+
.. toctree::
497+
:hidden:
498+
:caption: API
499+
500+
api/core
501+
501502

502503
Indices and tables
503504
==================

0 commit comments

Comments
 (0)