Skip to content

Commit

Permalink
contributing guidelines in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamanarora committed Jul 14, 2024
1 parent 4252510 commit 68620f6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
22 changes: 18 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For Priority Tag, you can use `[P0]`-`[P2]`, `[P0]` is the highest priority, whi

---

### :book: Pull Requests
### 📕 Pull Requests

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

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

### :inbox_tray: Larger Feature Requests
Please email us!
### 📄 Documentation
If making changes to documentation (in `docs/source`, deployed to GitHub Pages), please test your changes locally
(ideally in a fresh Python environment):

```
pip install -r requirements.txt
pip install -r docs/requirements.txt
cd docs
make html
python -m http.server
```

Then navigate to [localhost:8000/build/html](http://localhost:8000/build/html).

### 📥 Larger Feature Requests
Please email us!
8 changes: 7 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
project = 'pyvene'
copyright = '2024, Stanford NLP'
author = 'Stanford NLP'
release = '0.1'
release = '0.1.2'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down Expand Up @@ -71,6 +71,12 @@
'target': 'tutorials/pyvene_101.ipynb',
'ignore': [],
},
'contributing': {
'driver': 'copy_file',
'source': os.path.abspath('../../CONTRIBUTING.md'),
'target': 'guides/contributing.md',
'ignore': [],
},
}

# -- Options for HTML output -------------------------------------------------
Expand Down
15 changes: 8 additions & 7 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,9 @@ Star History

.. toctree::
:hidden:
:caption: API

api/core

.. toctree::
:hidden:
:caption: Extensions
:caption: Guides

guides/contributing
guides/ndif


Expand Down Expand Up @@ -498,6 +493,12 @@ Star History
tutorials/advanced_tutorials/MQNLI
tutorials/advanced_tutorials/Voting_Mechanism

.. toctree::
:hidden:
:caption: API

api/core


Indices and tables
==================
Expand Down

0 comments on commit 68620f6

Please sign in to comment.