Skip to content

Commit

Permalink
ローカル環境ではRSSの設定をしないようにする (#1254)
Browse files Browse the repository at this point in the history
* ローカル環境ではRSSの設定をしないように変更

* yamllintの警告に対応する

* インデントの誤りによるデグレを修正
  • Loading branch information
KentaHizume authored May 23, 2024
1 parent ea0c735 commit 962ea7c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build-documents/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ runs:
run: |
python -m pip install "mkdocs-material[imaging]"
sudo apt-get install pngquant
- name: RSS プラグイン用のパッケージインストール
shell: bash
run: |
pip install mkdocs-rss-plugin
- id: setup-version
name: ドキュメントのバージョン設定
Expand Down
27 changes: 15 additions & 12 deletions documents/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ site_author: "アドバンスド開発技術部"
site_description: "AlesInfiny Maris OSS Edition のポータルサイトです。"
site_dir: build-artifacts

# yamllint disable rule:comments-indentation
nav:
- AlesInfiny Maris OSS Edition にようこそ:
- index.md
Expand Down Expand Up @@ -99,6 +100,7 @@ nav:
- 利用規約: about-maris/terms.md
- 商標: about-maris/trademarks.md
- クレジット表記: about-maris/credits.md
# yamllint enable rule:comments-indentation

theme:
name: material
Expand Down Expand Up @@ -173,15 +175,16 @@ extra_css:
- stylesheets/overrides.css

plugins:
- search:
lang: ja
- minify:
minify_html: true
minify_js: true
htmlmin_opts:
remove_comments: true
- social:
enabled: !ENV [BUILD_DOCUMENTS, false]
cards_layout_options:
font_family: Noto Sans JP
- rss
- search:
lang: ja
- minify:
minify_html: true
minify_js: true
htmlmin_opts:
remove_comments: true
- social:
enabled: !ENV [BUILD_DOCUMENTS, false]
cards_layout_options:
font_family: Noto Sans JP
- rss:
enabled: !ENV [BUILD_DOCUMENTS, false]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ mkdocs==1.5.3
mkdocs-material==9.5.18
pymdown-extensions==10.8.1
mkdocs-minify-plugin==0.8.0
mkdocs-rss-plugin==1.12.2

0 comments on commit 962ea7c

Please sign in to comment.