Skip to content

Commit

Permalink
v2.9.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
taiseiue committed May 6, 2024
1 parent 7c92a07 commit 116f501
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 58 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__copyright__ = 'Copyright (C) 2022 WSOFT.'
__version__ = '2.9.8'
__version__ = '2.9.8.1'
__license__ = 'MIT'
__author__ = 'WSOFT'
__author_email__ = 'info@wsoft.ws'
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/alerts2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ summary : この記事では、Alerts2拡張機能の使用方法について説
date : 2024-05-06
---

<span class="badge bg-primary">対応バージョン:>=2.9.8</span>
<span class="badge bg-primary">対応バージョン:>=2.9.8.1</span>

Alerts2拡張機能は、Lantanaに引用を使用したアラートを追加する拡張機能です。

Expand Down
53 changes: 1 addition & 52 deletions docs/extensions/selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ summary : この記事では、Selector拡張機能の使用方法について
date : 2024-05-06
---

<span class="badge bg-primary">対応バージョン:>=2.9.8</span>
<span class="badge bg-primary">対応バージョン:>=2.9.8.1</span>

Selector拡張機能は、Lantanaに選択可能なサイトへのリンクを追加する拡張機能です。

Expand All @@ -31,57 +31,6 @@ Selector拡張機能は、Lantanaに選択可能なサイトへのリンクを
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
#### 注意事項

この拡張機能は、Alerts拡張機能と異なり、引用を使ってリンクを作成します。
MkDocsのMarkdownは、連続したふたつ以上の引用をひとつの引用として認識します。
このため、この拡張機能で生成されるリンクは連続して配置できないことにご注意ください。
次の例をご覧ください。

```md title="Markdown"
> [!SELECTOR] サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)

> [!SELECTOR] もう一度サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
```

**結果**

> [!SELECTOR] サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
> [!SELECTOR] もう一度サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
このような結果を避けるには、アラートの間に任意の要素を追加してください。

```md title="Markdown"
> [!SELECTOR] サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)

*TIP*

> [!SELECTOR] もう一度サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
```

> [!SELECTOR] サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
*TIP*

> [!SELECTOR] もう一度サイトを選択
> [WebSailing](https://docs.wsoft.ws/products/websailing)
> [AliceScript](https://docs.wsoft.ws/products/alice)
### 導入方法
設定ファイル(`mkdocs.yml`)に以下の行を追加します。

Expand Down
2 changes: 1 addition & 1 deletion lantana/extensions/lantana.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LantanaPreProcessor(Preprocessor):

_pattern = re.compile(r"> \[\!(.*)] *(.*)")

def run(self, lines: list[str]) -> list[str]:
def run(self, lines: list):
for i in range(len(lines)):
matches = re.findall(self._pattern,lines[i])
if len(matches) > 0:
Expand Down
4 changes: 2 additions & 2 deletions lantana/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Product" : "Lantana",
"CodeName" : "tapioca",
"Version" : "2.9.8",
"FullName" : "WSOFT Lantana v2.9.8(tapioca)"
"Version" : "2.9.8.1",
"FullName" : "WSOFT Lantana v2.9.8.1(tapioca)"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '2.9.8'
VERSION = '2.9.8.1'

setup(
name="lantana",
Expand Down

0 comments on commit 116f501

Please sign in to comment.