Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #69

Closed
wants to merge 3 commits into from
Closed

Docs #69

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 75 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,16 +163,20 @@ like [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv),
[virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/), and
[pyenv-virtualenvwrapper](https://github.com/pyenv/pyenv-virtualenvwrapper).

for git related issues refer to https://github.com/101Loop/APIManager-Flutter/blob/master/CONTRIBUTING.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HardipinderS I told you to take reference from that link and update this contributing guide on how to work on a forked version of this copy. So, please update the documentation guide how a user can contribute using a forked copy of this repo. We don't want users redirect to some other pages.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what and how much exactly is to be referred and added in that part, so gave the link. i would request you to please look into that part, as I'm not that sure what exactly is required


Next, get an up to date checkout of the `drf-user` repository:

### For Linux Users:

```sh
$ git clone [email protected]:101loop/drf-user.git
$ git clone [email protected]:<your-username>/drf-user.git
```

or if you want to use git via `https`:

```sh
$ git clone https://github.com/101loop/drf-user.git
$ git clone https://github.com/<your-github-username>/browser-history.git
```
HardipinderS marked this conversation as resolved.
Show resolved Hide resolved

Change into the newly created directory and **after activating your virtual
Expand Down Expand Up @@ -226,6 +230,75 @@ Commit your changes and push your branch to GitHub:

Submit a pull request through the GitHub website.

### For setting up in windows system:

You can either install "chocolatey" and run "choco install make" to use make functions
or
you can utilize the below commands

```
(env) $ cd drf-user
(env) $ pip install -r requirements-dev.txt
(env) $ pip install -e .
```

then do

```
pre-commit install
```

to test the app

```
(env) $ python -m pytest --disable-pytest-warnings --ds=tests.settings --cov=drf_user tests/
(env) $ sphinx-autobuild --port 8888 -b html . _build/html --open-browser

```

The built documentation can then be found in
[`localhost:8888`](http://localhost:8888).

Create a branch for local development:

```
(env) $ git checkout -b <branch_name>
```

Now you can make your changes locally.
make sure the format is checked

You can use
```
make check
```

or
copy and run this block of commands
```
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
find . -name '*.pyc' -follow -print0 | xargs -0 rm -f
find . -name '*.pyo' -follow -print0 | xargs -0 rm -f
find . -name '__pycache__' -type d -follow -print0 | xargs -0 rm -rf
rm -rf .coverage coverage*
rm -rf tests/.coverage test/coverage*
rm -rf htmlcov/
flake8 --exclude=*/migrations/* --max-line-length 88 drf_user
black --exclude .+/migrations/.+\.py drf_user
(env) $ python -m pytest --disable-pytest-warnings --ds=tests.settings --cov=drf_user tests/
```

Commit your changes and push your branch to GitHub:

```
(env) $ git add .
(env) $ git commit -m "Your detailed description of your changes."
(env) $ git push origin name-of-your-bugfix-or-feature
```


## Code of Conduct

Please note that this project is released with a Contributor
Expand Down
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ html:
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html"

livehtml:
sphinx-autobuild -p $(PORT) -b html $(SOURCEDIR) $(BUILDDIR)/html $(O)
sphinx-autobuild --port $(PORT) -b html $(SOURCEDIR) $(BUILDDIR)/html $(O) --open-browser
HardipinderS marked this conversation as resolved.
Show resolved Hide resolved

linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
Expand Down