Skip to content

Commit cf3c99a

Browse files
authored
Refactor docs into a different theme, improve nav (#319)
* Refactor docs into a different theme, improve nav * Amendments to PR
1 parent da7a623 commit cf3c99a

File tree

4 files changed

+28
-41
lines changed

4 files changed

+28
-41
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ src/build
4545

4646
# Virtual Environments
4747
/env*
48-
48+
.venv/
49+
docs/_build/
4950
# Visual Studio Files
5051
/.vs/*
5152
/tests/.vs/*

docs/conf.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
15+
from datetime import date
1516
import os
1617
import sys
1718
sys.path.insert(0, os.path.abspath('..'))
@@ -20,7 +21,7 @@
2021
# -- Project information -----------------------------------------------------
2122

2223
project = u'MSAL Python'
23-
copyright = u'2018, Microsoft'
24+
copyright = u'{0}, Microsoft'.format(date.today().year)
2425
author = u'Microsoft'
2526

2627
# The short X.Y version
@@ -77,13 +78,18 @@
7778
# a list of builtin themes.
7879
#
7980
# html_theme = 'alabaster'
80-
html_theme = 'sphinx_rtd_theme'
81+
html_theme = 'furo'
8182

8283
# Theme options are theme-specific and customize the look and feel of a theme
8384
# further. For a list of options available for each theme, see the
8485
# documentation.
8586
#
86-
# html_theme_options = {}
87+
html_theme_options = {
88+
"light_css_variables": {
89+
"font-stack": "'Segoe UI', SegoeUI, 'Helvetica Neue', Helvetica, Arial, sans-serif",
90+
"font-stack--monospace": "SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace",
91+
},
92+
}
8793

8894
# Add any paths that contain custom static files (such as style sheets) here,
8995
# relative to this directory. They are copied after the builtin static files,
@@ -176,4 +182,4 @@
176182
epub_exclude_files = ['search.html']
177183

178184

179-
# -- Extension configuration -------------------------------------------------
185+
# -- Extension configuration -------------------------------------------------

docs/index.rst

Lines changed: 14 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
.. MSAL Python documentation master file, created by
2-
sphinx-quickstart on Tue Dec 18 10:53:22 2018.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
6-
.. This file is also inspired by
7-
https://pythonhosted.org/an_example_pypi_project/sphinx.html#full-code-example
8-
9-
Welcome to MSAL Python's documentation!
10-
=======================================
1+
MSAL Python documentation
2+
=========================
113

124
.. toctree::
135
:maxdepth: 2
146
:caption: Contents:
7+
:hidden:
8+
9+
MSAL Documentation <https://docs.microsoft.com/en-au/azure/active-directory/develop/msal-authentication-flows>
10+
GitHub Repository <https://github.com/AzureAD/microsoft-authentication-library-for-python>
1511

1612
You can find high level conceptual documentations in the project
1713
`README <https://github.com/AzureAD/microsoft-authentication-library-for-python>`_
@@ -22,9 +18,8 @@ and
2218

2319
The documentation hosted here is for API Reference.
2420

25-
26-
PublicClientApplication and ConfidentialClientApplication
27-
=========================================================
21+
API
22+
===
2823

2924
MSAL proposes a clean separation between
3025
`public client applications and confidential client applications
@@ -35,31 +30,22 @@ with different methods for different authentication scenarios.
3530

3631
PublicClientApplication
3732
-----------------------
33+
3834
.. autoclass:: msal.PublicClientApplication
3935
:members:
36+
:inherited-members:
4037

4138
ConfidentialClientApplication
4239
-----------------------------
43-
.. autoclass:: msal.ConfidentialClientApplication
44-
:members:
45-
4640

47-
Shared Methods
48-
--------------
49-
Both PublicClientApplication and ConfidentialClientApplication
50-
have following methods inherited from their base class.
51-
You typically do not need to initiate this base class, though.
52-
53-
.. autoclass:: msal.ClientApplication
41+
.. autoclass:: msal.ConfidentialClientApplication
5442
:members:
55-
56-
.. automethod:: __init__
57-
43+
:inherited-members:
5844

5945
TokenCache
60-
==========
46+
----------
6147

62-
One of the parameter accepted by
48+
One of the parameters accepted by
6349
both `PublicClientApplication` and `ConfidentialClientApplication`
6450
is the `TokenCache`.
6551

@@ -71,11 +57,3 @@ See `SerializableTokenCache` for example.
7157

7258
.. autoclass:: msal.SerializableTokenCache
7359
:members:
74-
75-
76-
Indices and tables
77-
==================
78-
79-
* :ref:`genindex`
80-
* :ref:`search`
81-

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
furo
2+
-r ../requirements.txt

0 commit comments

Comments
 (0)