wsoft-project / lantana Goto Github PK
View Code? Open in Web Editor NEWLantana は、シンプルで軽量なMKDocsのテーマです。HTMLの知識がなくても簡単にサイトを作成できます。
License: MIT License
Lantana は、シンプルで軽量なMKDocsのテーマです。HTMLの知識がなくても簡単にサイトを作成できます。
License: MIT License
記事一覧にすべての記事が含まれているから
LantanaサイトでナビゲーションバーのCollapseが動作しない
キャッシュした後に該当サイトを開く
サイトをブラウスできない
theme.jsがhighlightで引っかかってることが原因?
非同期JavaScriptを見直す
iPadOS版Safariではprint-hide
とBootstrapの表示制御が両立できないため、印刷時に検索欄が表示し続けてしまう
コードブロックにコードがスクロールバーを使うようにCSSで指定する
pipにてPythonMarkdownを更新後、ビルドが通らなくなった
2023-04-29T01:25:15.047149Z Cloning repository...
2023-04-29T01:25:17.240378Z From https://github.com/WSOFT-Project/docs
2023-04-29T01:25:17.241097Z * branch e41c6e67178b821d5c659351b6ac61ab080bb652 -> FETCH_HEAD
2023-04-29T01:25:17.241333Z
2023-04-29T01:25:17.547604Z HEAD is now at e41c6e6 一旦暫定対応としてcards停止
2023-04-29T01:25:17.548277Z
2023-04-29T01:25:17.658469Z
2023-04-29T01:25:17.690232Z Success: Finished cloning repository files
2023-04-29T01:25:18.357812Z Installing dependencies
2023-04-29T01:25:18.365526Z Python version set to 3.7
2023-04-29T01:25:21.932652Z v12.18.0 is already installed.
2023-04-29T01:25:23.202393Z Now using node v12.18.0 (npm v6.14.4)
2023-04-29T01:25:23.411725Z Started restoring cached build plugins
2023-04-29T01:25:23.422823Z Finished restoring cached build plugins
2023-04-29T01:25:23.872364Z Attempting ruby version 2.7.1, read from environment
2023-04-29T01:25:25.498732Z Using /opt/buildhome/.rvm/gems/ruby-2.7.1
2023-04-29T01:25:26.518264Z Using PHP version 5.6
2023-04-29T01:25:26.61195Z 5.2.5 is already installed.
2023-04-29T01:25:26.630364Z Using Swift version 5.2.5
2023-04-29T01:25:26.63079Z Installing Hugo 0.54.0
2023-04-29T01:25:27.32762Z Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
2023-04-29T01:25:27.333527Z Started restoring cached go cache
2023-04-29T01:25:27.347403Z Finished restoring cached go cache
2023-04-29T01:25:27.440011Z go version go1.14.4 linux/amd64
2023-04-29T01:25:27.454234Z go version go1.14.4 linux/amd64
2023-04-29T01:25:27.458513Z Installing missing commands
2023-04-29T01:25:27.458838Z Verify run directory
2023-04-29T01:25:27.459019Z Executing user command: bash build.sh
2023-04-29T01:25:27.465186Z Welcome to WSOFTDocs!
2023-04-29T01:25:27.465468Z Copyright © 2022 WSOFT All Rights Reserved.
2023-04-29T01:25:27.465612Z
2023-04-29T01:25:27.465743Z WSOFTDocs's build has a need to Python3,MkDocs,Lantana and its dependents.
2023-04-29T01:25:27.465856Z Moreover, You can build legal docs, but documents that aren't from WSOFT shall have no legal effect.
2023-04-29T01:25:27.465997Z To learn more about it, please check at https://docs.wsoft.ws/
2023-04-29T01:25:27.472812Z MkDocs Doesn't exist! Install now.
2023-04-29T01:25:29.328961Z Collecting lantana
2023-04-29T01:25:29.408534Z Downloading lantana-2.6.2.tar.gz (17 kB)
2023-04-29T01:25:29.987952Z Collecting mkdocs-awesome-pages-plugin>=2.3
2023-04-29T01:25:30.001059Z Downloading mkdocs_awesome_pages_plugin-2.9.0-py3-none-any.whl (14 kB)
2023-04-29T01:25:30.047624Z Collecting mkdocs-git-authors-plugin>=0.6.2
2023-04-29T01:25:30.060648Z Downloading mkdocs_git_authors_plugin-0.7.0-py3-none-any.whl (18 kB)
2023-04-29T01:25:30.103385Z Collecting mkdocs-git-revision-date-plugin>=0.3.1
2023-04-29T01:25:30.116518Z Downloading mkdocs_git_revision_date_plugin-0.3.2-py3-none-any.whl (4.2 kB)
2023-04-29T01:25:30.162344Z Collecting mkdocs-macros-plugin>=0.6.3
2023-04-29T01:25:30.175945Z Downloading mkdocs_macros_plugin-0.7.0-py3-none-any.whl (20 kB)
2023-04-29T01:25:30.407357Z Collecting mkdocs-material>=7.0
2023-04-29T01:25:30.423674Z Downloading mkdocs_material-9.1.8-py3-none-any.whl (7.8 MB)
2023-04-29T01:25:36.701165Z Collecting mkdocs-mermaid2-plugin>=0.5.0
2023-04-29T01:25:36.716569Z Downloading mkdocs_mermaid2_plugin-0.6.0-py3-none-any.whl (8.7 kB)
2023-04-29T01:25:36.780597Z Collecting mkdocs>=1.1
2023-04-29T01:25:36.814971Z Downloading mkdocs-1.4.2-py3-none-any.whl (3.7 MB)
2023-04-29T01:25:37.088165Z Collecting natsort>=8.3.1
2023-04-29T01:25:37.102798Z Downloading natsort-8.3.1-py3-none-any.whl (38 kB)
2023-04-29T01:25:37.17037Z Collecting wcmatch>=7
2023-04-29T01:25:37.18294Z Downloading wcmatch-8.4.1-py3-none-any.whl (39 kB)
2023-04-29T01:25:37.274364Z Collecting GitPython
2023-04-29T01:25:37.286892Z Downloading GitPython-3.1.31-py3-none-any.whl (184 kB)
2023-04-29T01:25:37.36794Z Collecting jinja2
2023-04-29T01:25:37.381858Z Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
2023-04-29T01:25:37.446068Z Collecting python-dateutil
2023-04-29T01:25:37.459434Z Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
2023-04-29T01:25:37.508776Z Collecting termcolor
2023-04-29T01:25:37.521341Z Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB)
2023-04-29T01:25:37.626379Z Collecting pyyaml
2023-04-29T01:25:37.640891Z Downloading PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (596 kB)
2023-04-29T01:25:37.707662Z Collecting mkdocs-material-extensions>=1.1
2023-04-29T01:25:37.719776Z Downloading mkdocs_material_extensions-1.1.1-py3-none-any.whl (7.9 kB)
2023-04-29T01:25:37.789349Z Collecting colorama>=0.4
2023-04-29T01:25:37.8019Z Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
2023-04-29T01:25:37.886618Z Collecting requests>=2.26
2023-04-29T01:25:37.899524Z Downloading requests-2.29.0-py3-none-any.whl (62 kB)
2023-04-29T01:25:37.977691Z Collecting pygments>=2.14
2023-04-29T01:25:37.99314Z Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
2023-04-29T01:25:39.17219Z Collecting regex>=2022.4.24
2023-04-29T01:25:39.184807Z Downloading regex-2022.10.31-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB)
2023-04-29T01:25:39.292265Z Collecting pymdown-extensions>=9.9.1
2023-04-29T01:25:39.304887Z Downloading pymdown_extensions-9.11-py3-none-any.whl (239 kB)
2023-04-29T01:25:39.389498Z Collecting markdown>=3.2
2023-04-29T01:25:39.401962Z Downloading Markdown-3.4.3-py3-none-any.whl (93 kB)
2023-04-29T01:25:39.479128Z Collecting jsbeautifier
2023-04-29T01:25:39.4915Z Downloading jsbeautifier-1.14.7.tar.gz (74 kB)
2023-04-29T01:25:39.533731Z Installing build dependencies: started
2023-04-29T01:25:43.044982Z Installing build dependencies: finished with status 'done'
2023-04-29T01:25:43.051838Z Getting requirements to build wheel: started
2023-04-29T01:25:43.454867Z Getting requirements to build wheel: finished with status 'done'
2023-04-29T01:25:43.468338Z Preparing wheel metadata: started
2023-04-29T01:25:43.788183Z Preparing wheel metadata: finished with status 'done'
2023-04-29T01:25:43.844436Z Collecting beautifulsoup4>=4.6.3
2023-04-29T01:25:43.857806Z Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
2023-04-29T01:25:43.892007Z Requirement already satisfied: setuptools>=18.5 in /opt/buildhome/python3.7/lib/python3.7/site-packages (from mkdocs-mermaid2-plugin>=0.5.0->lantana) (44.0.0)
2023-04-29T01:25:43.918579Z Collecting mergedeep>=1.3.4
2023-04-29T01:25:43.931479Z Downloading mergedeep-1.3.4-py3-none-any.whl (6.4 kB)
2023-04-29T01:25:43.967592Z Collecting ghp-import>=1.0
2023-04-29T01:25:43.979939Z Downloading ghp_import-2.1.0-py3-none-any.whl (11 kB)
2023-04-29T01:25:44.037274Z Collecting click>=7.0
2023-04-29T01:25:44.049181Z Downloading click-8.1.3-py3-none-any.whl (96 kB)
2023-04-29T01:25:44.090683Z Collecting pyyaml-env-tag>=0.1
2023-04-29T01:25:44.103788Z Downloading pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB)
2023-04-29T01:25:44.244087Z Collecting watchdog>=2.0
2023-04-29T01:25:44.256402Z Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
2023-04-29T01:25:44.331552Z Collecting packaging>=20.5
2023-04-29T01:25:44.343897Z Downloading packaging-23.1-py3-none-any.whl (48 kB)
2023-04-29T01:25:44.394976Z Collecting typing-extensions>=3.10; python_version < "3.8"
2023-04-29T01:25:44.407043Z Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
2023-04-29T01:25:44.51552Z Collecting importlib-metadata>=4.3; python_version < "3.10"
2023-04-29T01:25:44.527696Z Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
2023-04-29T01:25:44.590566Z Collecting bracex>=2.1.1
2023-04-29T01:25:44.610892Z Downloading bracex-2.3.post1-py3-none-any.whl (12 kB)
2023-04-29T01:25:44.65428Z Collecting gitdb<5,>=4.0.1
2023-04-29T01:25:44.666367Z Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
2023-04-29T01:25:44.806853Z Collecting MarkupSafe>=2.0
2023-04-29T01:25:44.819723Z Downloading MarkupSafe-2.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
2023-04-29T01:25:44.866932Z Collecting six>=1.5
2023-04-29T01:25:44.882801Z Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
2023-04-29T01:25:44.924663Z Collecting idna<4,>=2.5
2023-04-29T01:25:44.939988Z Downloading idna-3.4-py3-none-any.whl (61 kB)
2023-04-29T01:25:45.003456Z Collecting certifi>=2017.4.17
2023-04-29T01:25:45.015484Z Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
2023-04-29T01:25:45.108116Z Collecting urllib3<1.27,>=1.21.1
2023-04-29T01:25:45.120759Z Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
2023-04-29T01:25:45.341939Z Collecting charset-normalizer<4,>=2
2023-04-29T01:25:45.356662Z Downloading charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (171 kB)
2023-04-29T01:25:45.407962Z Collecting editorconfig>=0.12.2
2023-04-29T01:25:45.42079Z Downloading EditorConfig-0.12.3-py3-none-any.whl (16 kB)
2023-04-29T01:25:45.485072Z Collecting soupsieve>1.2
2023-04-29T01:25:45.497501Z Downloading soupsieve-2.4.1-py3-none-any.whl (36 kB)
2023-04-29T01:25:45.562856Z Collecting zipp>=0.5
2023-04-29T01:25:45.575173Z Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
2023-04-29T01:25:45.630205Z Collecting smmap<6,>=3.0.1
2023-04-29T01:25:45.643481Z Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
2023-04-29T01:25:45.659494Z Building wheels for collected packages: lantana, jsbeautifier
2023-04-29T01:25:45.6619Z Building wheel for lantana (setup.py): started
2023-04-29T01:25:46.182903Z Building wheel for lantana (setup.py): finished with status 'done'
2023-04-29T01:25:46.185535Z Created wheel for lantana: filename=lantana-2.6.2-py3-none-any.whl size=21742 sha256=1d1ca6390769deb1c62f0be5f40370c024a9daeed27ce383ec1bb70e15ddf7c5
2023-04-29T01:25:46.185784Z Stored in directory: /tmp/pip-ephem-wheel-cache-4kbqf32x/wheels/7a/d5/e5/cb97ee4571dbcb040a65bd594f6174c7ecf6f014bb68093681
2023-04-29T01:25:46.195848Z Building wheel for jsbeautifier (PEP 517): started
2023-04-29T01:25:46.740118Z Building wheel for jsbeautifier (PEP 517): finished with status 'done'
2023-04-29T01:25:46.747144Z Created wheel for jsbeautifier: filename=jsbeautifier-1.14.7-py3-none-any.whl size=93560 sha256=fdf4ca1acc1c6ddb1d4181cc25cdb568591f6d504058918f0ea53de8722949fb
2023-04-29T01:25:46.747451Z Stored in directory: /tmp/pip-ephem-wheel-cache-4kbqf32x/wheels/cb/34/4f/52898647909379a8ca3011e23388f3666795d8f851597320ea
2023-04-29T01:25:46.750079Z Successfully built lantana jsbeautifier
2023-04-29T01:25:47.051512Z ERROR: mkdocs 1.4.2 has requirement markdown<3.4,>=3.2.1, but you'll have markdown 3.4.3 which is incompatible.
2023-04-29T01:25:47.05184Z Installing collected packages: zipp, typing-extensions, importlib-metadata, markdown, mergedeep, pyyaml, six, python-dateutil, ghp-import, click, pyyaml-env-tag, watchdog, MarkupSafe, jinja2, packaging, mkdocs, natsort, bracex, wcmatch, mkdocs-awesome-pages-plugin, mkdocs-git-authors-plugin, smmap, gitdb, GitPython, mkdocs-git-revision-date-plugin, termcolor, mkdocs-macros-plugin, mkdocs-material-extensions, colorama, idna, certifi, urllib3, charset-normalizer, requests, pygments, regex, pymdown-extensions, mkdocs-material, editorconfig, jsbeautifier, soupsieve, beautifulsoup4, mkdocs-mermaid2-plugin, lantana
Lantanaたんのプロフィール反映されてないのなんで?
自動生成では次の様にURLの一部が欠落する
正: https://docs.wsoft.ws/products/websailing/legacy/developper/plugin-safe-system/
https://docs.wsoft.ws/products/websailing/legacy/developper/plugin-safe-syste/
正: https://docs.wsoft.ws/contribute/text-formatting-guidelines/
https://docs.wsoft.ws/ntribute/text-formatting-guidelines/
Hello, I'm building a gallery of MkDocs themes.
Lantana seems currently broken, here are the logs I'm getting when trying to build a basic site with it:
WARNING - Template skipped: 'version.json' not found in theme directories.
ERROR - Error building page 'index.md': 'mkdocs.config.defaults.MkDocsConfig object' has no attribute 'share'
Traceback (most recent call last):
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/bin/mkdocs", line 8, in <module>
sys.exit(cli())
^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/mkdocs/__main__.py", line 286, in build_command
build.build(cfg, dirty=not clean)
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/mkdocs/commands/build.py", line 349, in build
_build_page(
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/mkdocs/commands/build.py", line 232, in _build_page
output = template.render(context)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/lantana/main.html", line 1, in top-level template code
{% extends "base.html" %}
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/lantana/base.html", line 157, in top-level template code
{% block main_content %}
^^^^^^^^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/lantana/main.html", line 101, in block 'main_content'
<li><button class="btn dropdown-item" onclick="share_to_twitter('{% if page.title %}{{ page.title }} | {% endif %}{{ config.site_name }}','{{ config.share.twitter_params }}');"><i class="bi bi-twitter"></i> Twitter</button></li>
^^^^^^^^^^^^^^^
File "/media/data/dev/mkdocs-gallery/themes/lantana/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'mkdocs.config.defaults.MkDocsConfig object' has no attribute 'share'
Could you take a look and let me know if it needs additional configuration?
Here is an archive containing the docs and configuration:
tar xvzf lantana.tar.gz
cd lantana
python -m venv .venv
. .venv/bin/activate
pip install mkdocs
pip install $(mkdocs get-deps)
mkdocs build
ファビコンが適用されない
サイトアイコンを使用できない
タイトルの通り
WindowsのChromeでは使用通り動作しましたが、iPadのSafariとChrome(どちらもWebKit)では期待通りの動作をしませんでした。
エクスペリエンスの一貫性が損なわれる
CSSのメディアクエリでの非表示を提案します
ダークモード適用時に画面が一瞬だけライトモードになりチラつく。
PC/iPadで確認。
ダークモード適用ロジックが遅い?
編集ボタンの表示可否を記事ごとに変更するフラグがほしい
編集できないことを促したい記事があるため
記事へのメタデータ、disable_editの追加
iPad9th(1080*810)で、左右の幅が狭く、ヘッダー内容が長いとデザインが崩れる
タイトルの通り
configにgoogle_analytics値を設定
機能が使用できない
GTAGに規定値が設定されている
印刷用ページで本文の幅がおかしい
mediaクエリだけではcolを変更しきれない?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.