[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material for MkDocs 9 #4628

Merged
merged 94 commits into from
Jan 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
fee799a
Added namespace to plugins and update to MkDocs 1.4.1
squidfunk Oct 16, 2022
4b51fa2
Adjusted checks for plugins in templates
squidfunk Oct 16, 2022
5f8269b
Optimize social plugin: cache font objects
oprypin Oct 17, 2022
c681be2
Optimize social plugin: reuse resized logo
oprypin Oct 17, 2022
38aca1e
Optimize social plugin: cache word width computation
oprypin Oct 17, 2022
09580da
Optimize social plugin: parallelize image saving
oprypin Oct 17, 2022
daffd08
Revert to pre-8.0.0 simpler CSS selectors
squidfunk Nov 1, 2022
9979cbf
Removed deprecations
squidfunk Nov 12, 2022
8ca7e2b
Merge branch 'master' into refactor/is-pseudo-class
squidfunk Nov 12, 2022
ed147e9
Merge branch 'refactor/is-pseudo-class' into feature/material-v9
squidfunk Nov 12, 2022
1f70d9a
Revert to pre-8.0.0 simpler CSS selectors
squidfunk Nov 12, 2022
68fcbe6
Merge branch 'master' into refactor/namespace-plugins
squidfunk Nov 12, 2022
17186b4
Merge branch 'refactor/namespace-plugins' into feature/material-v9
squidfunk Nov 12, 2022
77c125b
Removed unnecessary settings from MkDocs theme config
squidfunk Nov 12, 2022
5aebaaa
Fixed Korean language code in translations
squidfunk Nov 12, 2022
37250f1
Removed .title suffix on translations
squidfunk Nov 12, 2022
85d47e7
Merge branch 'master' into feature/material-v9
squidfunk Nov 12, 2022
557163a
Merge branch 'master' into feature/material-v9
squidfunk Nov 12, 2022
128e267
Added support for removing copy-to-clipboard button
squidfunk Nov 12, 2022
8fdd1ad
Added support for disabling footer navigation
squidfunk Nov 12, 2022
9c8ee7c
Merge branch 'master' into feature/material-v9
squidfunk Nov 12, 2022
a64ecac
Formatting
squidfunk Nov 12, 2022
c603720
Merge branch 'master' into feature/material-v9
squidfunk Nov 12, 2022
ac81f13
Merge branch 'master' into feature/material-v9
squidfunk Nov 12, 2022
4d8a158
Merge branch 'refactor/social-plugin' into feature/material-v9
squidfunk Nov 12, 2022
2271427
Fixed debugger
squidfunk Nov 12, 2022
66ead1b
Fix: Norwegian translations
tersor Nov 16, 2022
a698619
Remove incorrect Norwegian bokmål locale
tersor Nov 16, 2022
a20e9e0
Set search.config.lang to 'no', remove unnecessary translations
tersor Nov 17, 2022
bb5e561
Merge branch 'fix_norwegian' into feature/material-v9
squidfunk Nov 27, 2022
b75c649
Merge branch 'master' into feature/material-v9
squidfunk Nov 27, 2022
b82f8a5
Only show sidebar scrollbar on hover or focus
squidfunk Dec 2, 2022
e0dce6c
Merge branch 'master' into feature/material-v9
squidfunk Dec 6, 2022
b550b1a
Merged features tied to Carolina Reaper funding goal
squidfunk Dec 7, 2022
b3d2b7b
Removed unnecessary search separator
squidfunk Dec 7, 2022
8603b8a
Fixed linter errors
squidfunk Dec 7, 2022
98608c3
Prepare 9.0.0b1 release
squidfunk Dec 7, 2022
a904981
Throw out hatch and revert to setup.py, so we can release
squidfunk Dec 7, 2022
20ef8f8
Throw out hatch and revert to setup.py, so we can release
squidfunk Dec 7, 2022
0570b1a
Merge branch 'master' into feature/material-v9
squidfunk Dec 7, 2022
13680a5
Fixed title and tags being empty for some search queries
squidfunk Dec 7, 2022
d7c6703
Refactored search integration structure
squidfunk Dec 7, 2022
071b97d
Prepare 9.0.0b2 release
squidfunk Dec 7, 2022
ee2c7ee
Fixed sequence numbers in sequence diagrams in dark mode
squidfunk Dec 7, 2022
ad2c800
Fixed unpack error in search plugin
squidfunk Dec 8, 2022
3e9b72c
Fixed table of contents title not showing
squidfunk Dec 8, 2022
7bc7b4d
Prepare 9.0.0b3 release
squidfunk Dec 8, 2022
ac75912
Merge branch 'master' into feature/material-v9
squidfunk Dec 11, 2022
db74632
Updated JSON schema
squidfunk Dec 11, 2022
ee14964
Improved readability of URL for search sharing
squidfunk Dec 11, 2022
24a3be8
Fixed highlighting of tags
squidfunk Dec 11, 2022
77528e7
Formatting
squidfunk Dec 11, 2022
5f1dd22
Added distribution files
squidfunk Dec 11, 2022
1408c29
Prepare 9.0.0b4 release
squidfunk Dec 11, 2022
944180d
Refactored theme-color implementation to support palette switches
squidfunk Dec 11, 2022
c4c99f8
Formatting
squidfunk Dec 11, 2022
9df09d2
Merge branch 'master' into feature/material-v9
squidfunk Dec 11, 2022
28d64a2
Added view source button
squidfunk Dec 11, 2022
9db2a4a
Merge branch 'master' into feature/material-v9
squidfunk Dec 12, 2022
54b98b2
Formatting
squidfunk Dec 12, 2022
26c08f1
Fixed sidebar not focusing active item when navigation is huge
squidfunk Dec 12, 2022
763423d
Fixed prev/next page keyboard navigation when footer is not present
squidfunk Dec 14, 2022
1e46d54
Merge branch 'master' into feature/material-v9
squidfunk Dec 17, 2022
dcc50ff
Merge branch 'master' into feature/material-v9
squidfunk Dec 17, 2022
9fb3610
Fixed overflowing navigation tabs not being scrollable
squidfunk Dec 18, 2022
76e155c
Documentation
squidfunk Dec 18, 2022
5ec4a45
Added info plugin, a helper for creating bug reports
squidfunk Dec 18, 2022
78f3d15
Added latest version check to info plugin
squidfunk Dec 18, 2022
7b93fed
Added platform and runtime information to info plugin
squidfunk Dec 18, 2022
61abf6f
Added distribution files
squidfunk Dec 18, 2022
bfe4f1d
Added examples to .gitignore
squidfunk Dec 18, 2022
726e763
Updated schema
squidfunk Dec 18, 2022
8d190ef
Fixed wrong limit for warning in info plugin
squidfunk Dec 18, 2022
b64d0a6
Slight refactoring of tokenizer
squidfunk Dec 18, 2022
7104778
Let it melt (too much churn to keep this in beta)
squidfunk Dec 18, 2022
616d9d4
Merge branch 'master' into feature/material-v9
squidfunk Dec 19, 2022
359fdc5
Unified CSS selector lists
squidfunk Dec 20, 2022
85679fd
Merge branch 'master' into feature/material-v9
squidfunk Dec 31, 2022
8aeaed1
Updated dependencies
squidfunk Dec 31, 2022
5421abe
Reworked search documentation
squidfunk Dec 31, 2022
b1ecde6
Added no-copy classes for directory listings
squidfunk Dec 31, 2022
3a3ae93
Added first part of new bug reporting guide
squidfunk Dec 31, 2022
b4500d4
Updated bug report template
squidfunk Jan 1, 2023
54ce87a
Updated bug report template
squidfunk Jan 1, 2023
e63cd5a
Finished first version of bug report guide
squidfunk Jan 1, 2023
68f2381
Documentation
squidfunk Jan 1, 2023
2144c2f
Inline dependencies from info plugin
squidfunk Jan 1, 2023
acb48fd
Documentation
squidfunk Jan 1, 2023
081b63f
Documentation
squidfunk Jan 1, 2023
7e56e38
Documentation
squidfunk Jan 1, 2023
c2897de
Documentation
squidfunk Jan 1, 2023
aea6704
Prepare 9.0.0 release
squidfunk Jan 1, 2023
1295539
Added back hatch for release management
squidfunk Jan 1, 2023
a8c8583
Fixed hatch
squidfunk Jan 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
144 changes: 93 additions & 51 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,119 @@
name: Bug Report
description: Report a bug
description: Something is not working? Report a bug in Material for MkDocs.

body:
- type: checkboxes
attributes:
label: Contribution guidelines
description: Please read the contribution guidelines before proceeding.
options:
- label: I've read the [contribution guidelines](https://github.com/squidfunk/mkdocs-material/blob/master/CONTRIBUTING.md) and wholeheartedly agree
required: true
- type: checkboxes
- type: textarea
id: context
attributes:
label: I've found a bug and checked that ...
description: Make sure that your request fulfills all of the following requirements. If one requirement cannot be satisfied, explain in detail why.
options:
- label: ... the problem doesn't occur with the `mkdocs` or `readthedocs` themes
required: true
- label: ... the problem persists when all overrides are removed, i.e. `custom_dir`, `extra_javascript` and `extra_css`
- label: ... the documentation does not mention anything about my problem
- label: ... there are no open or closed issues that are related to my problem
label: Context
description: >-
This field is optional. You may provide additional context for the bug
you want to report, helping us to understand what you are working on and
what you are trying to achieve. If the context is not relevant, you can
leave this field empty. [More](https://squidfunk.github.io/mkdocs-material/bug-report/#context)
validations:
required: false

- type: textarea
id: bug-description
attributes:
label: Description
description: Please provide a brief description of the bug in 1-2 sentences.
label: Bug description
description: >-
Please give a detailed description of the bug. Explain where Material
for MkDocs does not behave as you would expect it to. Be as specific as
possible. If you have found a workaround or a fix for the problem,
please let us maintainers (and all other users) know. [More](https://squidfunk.github.io/mkdocs-material/bug-report/#bug-description)
validations:
required: true

- type: textarea
id: related-links
attributes:
label: Expected behaviour
description: Please describe precisely what you'd expect to happen.
label: Related links
description: >-
Please list all links to the sections of
[our documentation](https://squidfunk.github.io/mkdocs-material) that
are relevant to the bug, in order to show that you have consulted and
thoroughly read it. Additionally, list links to possibly related issues
or discussions you encountered when searching our issue tracker.
[More](https://squidfunk.github.io/mkdocs-material/bug-report/#related-links)
value: |-
- [Bug reporting](https://squidfunk.github.io/mkdocs-material/bug-report/)
-
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Actual behaviour
description: Please describe precisely what is actually happening.
label: Reproduction
description: >-
Please create a __minimal reproduction__ for the bug. First, read our
[reproduction guide](https://squidfunk.github.io/mkdocs-material/bug-report/reproduction/)
that explains the necessary steps, then use the [built-in info plugin](https://squidfunk.github.io/mkdocs-material/bug-report/reproduction/#creating-a-zip-file) (mandatory) to create a self-contained
.zip file with the reproduction. Without a reproduction, it can be
challenging to fix the bug. [More](https://squidfunk.github.io/mkdocs-material/bug-report/#reproduction)
placeholder: |-
Drag and drop .zip file with reproduction here.
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce
description: Please describe the steps to reproduce the bug.
description: >-
Please provide a detailed list of instructions, guiding us maintainers
through the required steps, helping us to recreate the problem using the
minimal reproduction you provided. Be as specific as possible and as
verbose as necessary – try not to leave anything out. [More](https://squidfunk.github.io/mkdocs-material/bug-report/reproduction/#steps-to-reproduce)
placeholder: |-
1. ...
2. ...
3. ...
validations:
required: true
- type: textarea
attributes:
label: Package versions
description: Please provide all package versions, i.e. run the commands in backticks on a shell.
value: |-
- Python: `python --version`
- MkDocs: `mkdocs --version`
- Material: `pip show mkdocs-material | grep -E ^Version`
validations:
required: true
- type: textarea

- type: dropdown
id: browser
attributes:
label: Configuration
description: Please provide a minimal (!) `mkdocs.yml` to reproduce the bug.
placeholder: |-
site_name: My Docs
site_url: https://example.com/docs
render: yaml
validations:
required: true
- type: textarea
label: Browser
description: >-
If the bug only happens in __specific browsers__, please select them
from the dropdown below. If your browser is not listed or the version
is relevant, you may select _Other_ and provide more details in the
field above. [More](https://squidfunk.github.io/mkdocs-material/bug-report/reproduction/#browser)
multiple: true
options:
- Chrome
- Safari
- Edge
- Firefox
- Opera
- Other

- type: checkboxes
id: checklist
attributes:
label: System information
description: Please provide your operating system and browser type and version.
value: |-
- Operating system: ...
- Browser: ...
validations:
required: true
label: Before submitting
description: >-
Please ensure your bug report fulfills all of the following requirements.
If you are not sure what a specific requirement means, follow the link
to learn about it and understand why it is necessary before ticking the
box. This will save the maintainers and you valuable time.
options:
- label: >-
I have read and followed the [bug reporting guidelines](https://squidfunk.github.io/mkdocs-material/bug-report/).
required: true
- label: >-
I have attached links to [the documentation](https://squidfunk.github.io/mkdocs-material),
and possibly related [issues](https://github.com/squidfunk/mkdocs-material/issues)
or [discussions](https://github.com/squidfunk/mkdocs-material/discussions).
required: true
- label: >-
I assure that I have [removed all customizations](https://squidfunk.github.io/mkdocs-material/bug-report/#remove-customizations)
before submitting this bug report.
required: true
- label: >-
I have attached a [minimal reproduction](https://squidfunk.github.io/mkdocs-material/bug-report/reproduction/).
required: true
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ body:
{% macro t(key) %}{{ {
"language": "en",
"direction": "ltr",
"action.edit": "Edit this page",
"action.skip": "Skip to content",
"action.view": "View source of this page",
"announce.dismiss": "Don't show this again",
"clipboard.copy": "Copy to clipboard",
"clipboard.copied": "Copied to clipboard",
"consent.accept": "Accept",
"consent.manage": "Manage settings",
"consent.reject": "Reject",
"edit.link": "Edit this page",
"footer": "Footer",
"footer.next": "Next",
"footer.previous": "Previous",
Expand All @@ -52,10 +54,9 @@ body:
"search.result.term.missing": "Missing",
"select.language": "Select language",
"select.version": "Select version",
"skip.link": "Skip to content",
"source": "Go to repository",
"source.file.date.created": "Created",
"source.file.date.updated": "Last update",
"source.link": "Go to repository",
"tabs": "Tabs",
"toc": "Table of contents",
"top": "Back to top"
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
.eslintcache
__pycache__

# Examples
example
example.zip

# -----------------------------------------------------------------------------
# General
# -----------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"dppx",
"deg",
"em",
"fr",
"mm",
"ms",
"px",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"--incognito"
],
"url": "http://localhost:8000/mkdocs-material/",
"webRoot": ".",
"webRoot": "${workspaceFolder}",
"smartStep": true
}
]
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
mkdocs-material-9.0.0 (2023-01-02)

Additions and improvements

* Added support for rich search previews
* Added support for tokenizer lookahead
* Added support for better search highlighting
* Added support for excluding content from search
* Added support for configurable search pipeline
* Added support for offline search via offline plugin
* Added support for multiple instances of built-in tags plugin
* Added support for removing copy-to-clipboard button
* Added support for removing footer navigation
* Added support for button to view the source of a page
* Improved readability of query string for search sharing
* Improved stability of search plugin when using --dirtyreload
* Improved search result group button, now sticky and stable
* Updated Norwegian translations
* Updated MkDocs to 1.4.2

Removals

* Removed deprecated alternative admonition qualifiers
* Removed :is() selectors (in output) for easier overriding
* Removed .title suffix on translations
* Removed legacy method for providing page title in feedback URL
* Removed support for indexing only titles in search
* Removed support for custom search transforms
* Removed support for custom search workers
* Removed temporary snow feature (easter egg)

Fixes

* Fixed Norwegian and Korean language code
* Fixed detection of composition events in search interface
* Fixed search plugin not using title set via front matter
* Fixed search highlighting of tags
* Fixed search sharing URL using post transformed string
* Fixed theme-color meta tag getting out-of-sync with palette toggle
* Fixed prev/next page keyboard navigation when footer is not present
* Fixed overflowing navigation tabs not being scrollable
* Fixed inclusion of code block line numbers from search

mkdocs-material-8.5.11+insiders-4.27.0 (2022-12-20)

* Added built-in typeset plugin to preserve formatting in sidebars
Expand Down
1 change: 0 additions & 1 deletion docs/.meta.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/blog/posts/blog-support-just-landed.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ mkdocs new .

This will create the following structure:

```
``` { .sh .no-copy }
.
├─ docs/
│ └─ index.md
Expand Down Expand Up @@ -118,7 +118,7 @@ first post. All blog posts are written with the [exact same Markdown flavor] as
already included with Material for MkDocs. First, create a folder called `posts`
with a file called `hello-world.md`:

``` sh
``` { .sh .no-copy }
.
├─ docs/
│ ├─ posts/
Expand Down
Loading