Skip to content

Commit

Permalink
Revise content.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCompton committed Sep 28, 2024
1 parent 619ba60 commit e44a1ef
Show file tree
Hide file tree
Showing 8 changed files with 150 additions and 10 deletions.
119 changes: 117 additions & 2 deletions docs/credits.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,118 @@

https://github.com/squidfunk/mkdocs-material
Copyright (c) 2016-2024 Martin Donath <[email protected]>
## MkDocs

=== "Acknowledgment"

This project uses MkDocs to manage and produce the content and site.

- [MkDocs](https://www.mkdocs.org/)
- [GitHub Project](https://github.com/mkdocs/mkdocs)

> Copyright © 2014, Tom Christie. All rights reserved.

=== "License"

```
Copyright © 2014-present, Tom Christie. All rights reserved.

Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:

Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
```

---

## Material for MkDocs

=== "Acknowledgment"

This project uses the Material for MkDocs theme as the basis of the notebook.

- [mkdocs-material](https://squidfunk.github.io/mkdocs-material/)
- [GitHub Project](https://github.com/squidfunk/mkdocs-material)

> Copyright (c) 2016-2024 Martin Donath <[email protected]>

=== "License"

```
Copyright (c) 2016-2024 Martin Donath <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
```

---

## Marp Markdown Presentation Ecosystem

=== "Acknowledgment"

This project uses Marp to create the HTML and PDF presentations.

- [Marp](https://marp.app/)
- [GitHub Project](https://github.com/marp-team/marp)

> Copyright (c) 2018-2023 Marp team ([email protected])

=== "License"

```
MIT License

Copyright (c) 2018-2023 Marp team ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
29 changes: 24 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@


# Welcome to MkDocs
# Welcome to the Notebook

For full documentation visit [mkdocs.org](https://www.mkdocs.org).
For full documentation visit [chriscompton.github.io/notebook](https://chriscompton.github.io/notebook/).

## Commands
## MkDocs Commands

* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.

## Marp Commands

* `python scripts/marp.py` - Generate presentations when front matter has `marp: true`

!!! note

The **marp script will alter your markdown files** to add buttons at the bottom of the page for
HTML and PDF. If you change `marp: false`, it will cause the script to remove the links and
the generated files.

## Project layout

mkdocs.yml # The configuration file.
scripts/
marp.py # Scans for markdown files requiring presentations.
encode.py # Converts the png template images to css embeddable images.
marp/
notebook/
image/ # Has the png background images for presentations.
notebook.css # The CSS file used for presentation formatting.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.

## Formatting

You can find great documentation on formatting content at the [mkdocs-material reference](https://squidfunk.github.io/mkdocs-material/reference/).
2 changes: 1 addition & 1 deletion docs/static/css/adjust.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/* Sets a common highlight color */
/* Sets a common highlight color
.md-content a {
color: #00833d;
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes.
8 changes: 7 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
site_name: Notebook
# docs_dir: ../your_docs_dir
repo_url: https://github.com/ChrisCompton/notebook
theme:
name: material
palette:
primary: green

plugins:
- search
Expand Down Expand Up @@ -54,4 +57,7 @@ markdown_extensions:
exclude_docs: |
__*.md
draft_docs: |
DRAFT_*.md
DRAFT_*.md
extra:
generator: false
2 changes: 1 addition & 1 deletion scripts/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
markdown_source_path = 'docs'
marp_theme_path = 'marp'
marp_theme_path = 'marp/notebook'
marp_theme_image_path = 'marp/images'

0 comments on commit e44a1ef

Please sign in to comment.