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

Bump the minimum supported version of click to 8.0.6 #914

Merged
merged 2 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
git config --local user.email 'github-actions[bot]@users.noreply.github.com'

- name: Build documentation
run: hatch run docs:build-check
run: hatch -v run docs:build-check
env:
GH_TOKEN_MKDOCS_MATERIAL_INSIDERS: ${{ secrets.GH_TOKEN_MKDOCS_MATERIAL_INSIDERS }}

- name: Commit documentation
run: hatch run docs:ci-build dev
run: hatch -v run docs:ci-build dev
env:
GH_TOKEN_MKDOCS_MATERIAL_INSIDERS: ${{ secrets.GH_TOKEN_MKDOCS_MATERIAL_INSIDERS }}

Expand Down
46 changes: 8 additions & 38 deletions docs/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,22 @@
/* https://github.com/squidfunk/mkdocs-material/issues/1522 */
.md-typeset h5 {
color: var(--md-default-fg-color);
text-transform: none;
:root > * {
/* Use font but disable ligatures, see https://github.com/pypa/hatch/issues/104 */
font-variant-ligatures: none;
}

/* Brighter links for dark mode */
[data-md-color-scheme=slate] {
/* https://github.com/squidfunk/mkdocs-material/blob/7.3.6/src/assets/stylesheets/main/_colors.scss */
/* https://github.com/squidfunk/mkdocs-material/blob/9.1.2/src/assets/stylesheets/main/_colors.scss#L91-L92 */
--md-typeset-a-color: var(--md-primary-fg-color--light);
}

/* FiraCode https://github.com/tonsky/FiraCode */
code { font-family: 'Fira Code', monospace; }

@supports (font-variation-settings: normal) {
code { font-family: 'Fira Code VF', monospace; }
}

/* https://github.com/pypa/hatch/issues/104 */
:root {
font-variant-ligatures: none;
}

/* Everything below is from https://mkdocstrings.github.io/python/customization/#recommended-style-material */

/* Indentation. */
div.doc-contents:not(.first) {
padding-left: 25px;
border-left: .05rem solid var(--md-typeset-table-color);
}

/* Mark external links as such. */
a.autorefs-external::after {
/* https://primer.style/octicons/arrow-up-right-24 */
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="rgb(0, 0, 0)" d="M18.25 15.5a.75.75 0 00.75-.75v-9a.75.75 0 00-.75-.75h-9a.75.75 0 000 1.5h7.19L6.22 16.72a.75.75 0 101.06 1.06L17.5 7.56v7.19c0 .414.336.75.75.75z"></path></svg>');
content: ' ';

display: inline-block;
position: relative;
top: 0.1em;
margin-left: 0.2em;
margin-right: 0.1em;

height: 1em;
width: 1em;
border-radius: 100%;
background-color: var(--md-typeset-a-color);
}
a.autorefs-external:hover::after {
background-color: var(--md-accent-fg-color);
/* https://github.com/squidfunk/mkdocs-material/issues/1522 */
.md-typeset h5 {
color: var(--md-default-fg-color);
text-transform: none;
}
1 change: 1 addition & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Add standalone binaries
- Bump the minimum supported version of Hatchling to 1.17.1
- Bump the minimum supported version of `click` to 8.0.6

## [1.7.0](https://github.com/pypa/hatch/releases/tag/hatch-v1.7.0) - 2023-04-03 ## {: #hatch-v1.7.0 }

Expand Down
1 change: 0 additions & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Each [release](https://github.com/pypa/hatch/releases) provides the following:
- Windows AMD64 (64-bit) MSI installer
- Windows x86 (32-bit) MSI installer
- Windows universal (AMD64+x86) EXE installer
- macOS DMG installer

## pip

Expand Down
20 changes: 10 additions & 10 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,21 @@ all = [

[envs.docs]
dependencies = [
"mkdocs~=1.4.0",
"mkdocs-material~=8.5.6",
"mkdocs~=1.4.3",
"mkdocs-material~=9.1.0",
# Plugins
"mkdocs-minify-plugin~=0.5.0",
"mkdocs-git-revision-date-localized-plugin~=1.1.0",
"mkdocstrings-python~=0.7.1",
"mkdocs-redirects~=1.1.0",
"mkdocs-glightbox~=0.3.0",
"mkdocs-minify-plugin~=0.6.4",
"mkdocs-git-revision-date-localized-plugin~=1.2.0",
"mkdocstrings-python~=1.2.1",
"mkdocs-redirects~=1.2.1",
"mkdocs-glightbox~=0.3.4",
# https://github.com/jimporter/mike/issues/82#issuecomment-1172913929
"mike @ https://github.com/jimporter/mike/archive/392d57b8bb9d14bcedf2451a0dc302709f8055eb.zip",
"mike @ https://github.com/jimporter/mike/archive/be1aafe244bc86172fbce52a903c9ab83e2e4a26.zip",
# Extensions
"mkdocs-click~=0.8.0",
"pymdown-extensions~=9.6.0",
"pymdown-extensions~=10.1.0",
# Necessary for syntax highlighting in code blocks
"pygments~=2.13.0",
"pygments~=2.15.1",
# Validation
# https://github.com/linkchecker/linkchecker/pull/669#issuecomment-1267236287
"linkchecker @ git+https://github.com/linkchecker/linkchecker.git@d9265bb71c2054bf57b8c5734a4825d62505c779",
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.insiders.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
INHERIT: mkdocs.yml

plugins:
blog:
material/blog:
categories_allowed:
- General
- News
Expand Down
10 changes: 7 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ theme:
icon: material/weather-sunny
name: Switch to dark mode
features:
- navigation.sections
- content.action.edit
- content.code.copy
- navigation.expand
- navigation.footer
- navigation.instant
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
- navigation.instant

nav:
- Home:
Expand Down Expand Up @@ -129,6 +132,7 @@ plugins:
minify_html: true
git-revision-date-localized:
type: date
strict: false
# Required for blog plugin's generated indices
fallback_to_build_date: true
exclude:
Expand Down Expand Up @@ -235,4 +239,4 @@ extra:
link: https://www.linkedin.com/in/ofeklev/
extra_css:
- assets/css/custom.css
- https://cdn.jsdelivr.net/gh/tonsky/[email protected]/distr/fira_code.css
- https://cdn.jsdelivr.net/npm/[email protected]/distr/fira_code.css
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ classifiers = [
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"click>=8.0.3",
"click>=8.0.6",
"hatchling>=1.14.0",
"httpx>=0.22.0",
"hyperlink>=21.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_mkdocs_material_insiders.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

TOKEN = os.environ.get('GH_TOKEN_MKDOCS_MATERIAL_INSIDERS', '')
DEP_REF = f'git+https://{TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git'
GIT_REF = '2203a968f9992578460add59056b480ea454ddb3'
GIT_REF = 'd03fc7efdb0f1432b8170a4e12285971bd6cdcb2'


def main():
Expand Down