From 9c95801c7960c747f74a13adf0d5413a983e4195 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@jrother.eu>
Date: Fri, 23 Jul 2021 17:06:28 +0200
Subject: [PATCH] Fixed docs and added CI jobs to build them

---
 .gitlab-ci.yml | 12 ++++++++++++
 docs/api.rst   |  7 -------
 docs/conf.py   |  2 +-
 3 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a501fa8..cfb88e8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,15 @@
+build-docs:
+  stage: build
+  image: python:3.7
+  script:
+  - pip install Sphinx sphinx-rtd-theme
+  - cd docs && make html
+  artifacts:
+    paths:
+    - docs/_build/html/index.html
+    - docs/_build/html
+    expose_as: 'Documentation'
+
 publish:
   stage: deploy
   image: python:3.7
diff --git a/docs/api.rst b/docs/api.rst
index 48e4460..a9dbb1d 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -19,13 +19,6 @@ Directory Objects
 .. autoclass:: ldapserver.directory.FilterMixin
   :members:
 
-Authentication Utilties
------------------------
-
-.. autofunction:: ldapserver.sasl.external.get_peercred
-
-.. autofunction:: ldapserver.sasl.digest_md5.credential_digest
-
 LDAP Protocol
 -------------
 
diff --git a/docs/conf.py b/docs/conf.py
index 1463acf..392be5d 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -12,7 +12,7 @@
 #
 import os
 import sys
-sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.abspath('../src'))
 
 
 # -- Project information -----------------------------------------------------
-- 
GitLab