Skip to content

Commit 3a9a399

Browse files
committed
Update versions
1 parent 653f725 commit 3a9a399

File tree

3 files changed

+48
-23
lines changed

3 files changed

+48
-23
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,36 @@
1010
outputs = { self, nixpkgs, ... }:
1111
let
1212
pkgs = nixpkgs.legacyPackages.x86_64-linux;
13-
mkdocs-static-i18n = pkgs.python3Packages.buildPythonPackage {
14-
pname = "mkdocs-static-i18n";
15-
version = "0.53";
16-
src = pkgs.fetchFromGitHub {
17-
owner = "ultrabug";
18-
repo = "mkdocs-static-i18n";
19-
rev = "3b0c4a8978b5f706265ebed4deee4ca1cd726353";
20-
sha256 = "Agxw/viwqNaojPOf2IckTMqEs09IurgTcMfRfMBjBso=";
13+
packageOverrides = self: super: {
14+
mkdocs-material = super.mkdocs-material.overridePythonAttrs (old: rec {
15+
version = "9.4.6";
16+
src = super.fetchPypi {
17+
pname = "mkdocs_material";
18+
inherit version;
19+
hash = "sha256-CWZeYN9+6eX/OlSvFz9tRb5xix7n3ZYrz/MQK4H7DBQ=";
20+
};
21+
});
22+
mkdocs-static-i18n = super.buildPythonPackage rec {
23+
pname = "mkdocs-static-i18n";
24+
version = "1.2.0";
25+
pyproject = true;
26+
src = super.fetchPypi {
27+
inherit version;
28+
pname = "mkdocs_static_i18n";
29+
hash = "sha256-S9D/7J8dlmtmrOhTAntYaImumksrgMQutR1CkOXOD9c=";
30+
};
31+
propagatedBuildInputs = with self; [
32+
setuptools
33+
mkdocs
34+
mkdocs-material
35+
hatchling
36+
];
2137
};
22-
propagatedBuildInputs = with pkgs.python3Packages; [
23-
setuptools
24-
mkdocs
25-
mkdocs-material
26-
];
2738
};
39+
python = pkgs.python3.override { inherit packageOverrides; };
2840
in with pkgs; {
2941
devShells.x86_64-linux.default = mkShell {
30-
buildInputs = with python3Packages; [
42+
buildInputs = with python.pkgs; [
3143
mkdocs
3244
mkdocs-material
3345
mkdocs-static-i18n

mkdocs.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,19 @@ extra:
4040
plugins:
4141
- search
4242
- i18n:
43-
default_language: zh
43+
docs_structure: suffix
44+
fallback_to_default: true
4445
languages:
45-
en: English
46-
zh: 简体中文
46+
- build: true
47+
default: false
48+
locale: en
49+
name: English
50+
- build: true
51+
default: true
52+
locale: zh
53+
name: 简体中文
54+
reconfigure_material: true
55+
reconfigure_search: true
4756

4857
markdown_extensions:
4958
- toc:
@@ -66,3 +75,7 @@ markdown_extensions:
6675
- pymdownx.betterem:
6776
smart_enable: all
6877
- pymdownx.tasklist
78+
- attr_list
79+
- pymdownx.emoji:
80+
emoji_index: !!python/name:material.extensions.emoji.twemoji
81+
emoji_generator: !!python/name:material.extensions.emoji.to_svg

0 commit comments

Comments
 (0)