Skip to content

Commit a6a27d2

Browse files
authored
Update docs (#21)
* Show bottom relbar * Add usage * Fix lxml * Run allauth tests
1 parent c492f0a commit a6a27d2

File tree

7 files changed

+69
-53
lines changed

7 files changed

+69
-53
lines changed

docs/source/conf.py

+4
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@
2525

2626
html_theme = "alabaster"
2727
html_static_path = ["_static"]
28+
html_theme_options = {
29+
"show_relbar_top": False,
30+
"show_relbar_bottom": True,
31+
}

docs/source/index.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ Table of Contents
2525
.. toctree::
2626
:maxdepth: 3
2727

28-
installation/index
28+
installation
29+
usage
2930
third-party-library-support/index
3031
supported-libraries/index
3132

docs/source/installation.rst

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Installation
2+
============
3+
4+
Clone the repository
5+
--------------------
6+
7+
::
8+
9+
git clone https://github.com/mongodb-labs/django-mongodb-cli
10+
cd django-mongodb-cli
11+
12+
13+
Create a virtual environment
14+
----------------------------
15+
16+
::
17+
18+
python -m venv .venv
19+
source .venv/bin/activate
20+
21+
22+
Install ``dm`` command
23+
----------------------
24+
25+
::
26+
27+
python -m pip install -e .
28+
29+
.. _additional-installation-steps:
30+
31+
Additional installation steps
32+
-----------------------------
33+
34+
Clone third-party library repositories and install dependencies with ``just``.
35+
36+
::
37+
38+
just install

docs/source/installation/index.rst

-51
This file was deleted.

docs/source/usage.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Usage
2+
=====
3+
4+
Run third-party library tests
5+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6+
7+
django-allauth
8+
++++++++++++++
9+
10+
.. warning::
11+
12+
If you install ``lxml`` and ``xmlsec`` via ``pip`` instead of
13+
``just install`` :ref:`as described here <additional-installation-steps>`
14+
you may encounter test failures due to `issues like this one
15+
<https://github.com/xmlsec/python-xmlsec/issues/320>`_.
16+
17+
::
18+
19+
dm repo test django-allauth

justfile

+6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ install: pip-install git-clone dev-install
55
alias i := install
66

77
dev-install:
8+
dm repo install django
89
dm repo install django-mongodb-backend
910
dm repo install django-mongodb-extensions
1011
dm repo install mongo-python-driver
12+
dm repo install python-xmlsec
1113

1214

1315
demo:
@@ -21,12 +23,15 @@ alias d := demo
2123

2224
[group('git')]
2325
git-clone:
26+
dm repo clone django
27+
dm repo clone django-allauth
2428
dm repo clone django-mongodb-app
2529
dm repo clone django-mongodb-backend
2630
dm repo clone django-mongodb-extensions
2731
dm repo clone django-mongodb-project
2832
dm repo clone django-mongodb-templates
2933
dm repo clone mongo-python-driver
34+
dm repo clone python-xmlsec
3035

3136
# ---------------------------------------- django ----------------------------------------
3237

@@ -63,6 +68,7 @@ db-init:
6368
[group('python')]
6469
pip-install: check-venv
6570
brew install libxml2 libxmlsec1 pkg-config
71+
pip install lxml==5.3.2 --no-binary :all:
6672
pip install -U pip
6773
pip install -e .
6874
pre-commit install

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies = [
1212
"dj-database-url", # For startproject and testing with postgres
1313
"fido2", # For django-allauth
1414
"html5lib", # Required by django-debug-toolbar
15-
"lxml==5.2.1", # For django-allauth
1615
"psycopg2", # For django-allauth
1716
"python3-openid", # For django-allauth
1817
"python3-saml", # For django-allauth

0 commit comments

Comments
 (0)