Skip to content

Commit 4dc315b

Browse files
authored
Merge pull request #513 from activivan/develop
MkDocs Documentation
2 parents 93460a8 + eef62a9 commit 4dc315b

File tree

8 files changed

+84
-3
lines changed

8 files changed

+84
-3
lines changed

.github/workflows/docs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.x
14+
- run: pip install mkdocs-material
15+
- run: mkdocs gh-deploy --force

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ phpunit
66
composer.lock
77
.DS_Store
88
.idea/
9+
site

docs/assets/favicon.ico

4.97 KB
Binary file not shown.

docs/assets/flame.svg

Lines changed: 11 additions & 0 deletions
Loading

docs/assets/hljs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
document.addEventListener('DOMContentLoaded', (event) => {
2+
hljs.highlightAll();
3+
});

docs/concepts.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ The only requirement is that your new class MUST extend the provided `UserModel`
3232
public $userProvider = 'CodeIgniter\Shield\Models\UserModel';
3333
```
3434

35-
<a name="identities" />
36-
3735
## User Identities
3836

3937
User accounts are stored separately from the information needed to identify that user. These identifying pieces of data are

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
* [Testing](testing.md)
1111
* [Customization](customization.md)
1212

13-
Guides:
13+
## Guides
1414
* [Protecting an API with Access Tokens](guides/api_tokens.md)
1515
* [Mobile Authentication with Access Tokens](guides/mobile_apps.md)

mkdocs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
site_name: CodeIgniter Shield
2+
site_description: Documentation for the official Authentication and Authorization framework for CodeIgniter 4
3+
4+
theme:
5+
name: material
6+
logo: assets/flame.svg
7+
favicon: assets/favicon.ico
8+
icon:
9+
repo: fontawesome/brands/github
10+
font:
11+
text: Raleway
12+
palette:
13+
primary: deep orange
14+
features:
15+
- navigation.sections
16+
17+
extra:
18+
homepage: https://codeigniter.com
19+
20+
social:
21+
- icon: fontawesome/brands/github
22+
link: https://github.com/codeigniter4/shield
23+
name: GitHub
24+
25+
repo_url: https://github.com/codeigniter4/shield
26+
27+
markdown_extensions:
28+
- pymdownx.superfences
29+
- pymdownx.highlight:
30+
use_pygments: false
31+
32+
extra_css:
33+
- https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/styles/github.min.css
34+
35+
extra_javascript:
36+
- https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.6.0/build/highlight.min.js
37+
- assets/hljs.js
38+
39+
nav:
40+
- Home: index.md
41+
- Installation: install.md
42+
- Concepts: concepts.md
43+
- Quick Start Guide: quickstart.md
44+
- Authentication: authentication.md
45+
- Authorization: authorization.md
46+
- Auth Actions: auth_actions.md
47+
- Events: events.md
48+
- Testing: testing.md
49+
- Customization: customization.md
50+
- session_auth_event_and_logging.md
51+
- Guides:
52+
- guides/api_tokens.md
53+
- guides/mobile_apps.md

0 commit comments

Comments
 (0)