Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GetAdocUI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QCD
Tools
GetAdocUI
Commits
a17f2a1f
You need to sign in or sign up before continuing.
Commit
a17f2a1f
authored
Sep 09, 2024
by
AP matsuo koji
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli 1
parent
6873e93e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
297 additions
and
107 deletions
+297
-107
config.adoc
Release/getADoc.Data/adocTPL/config.adoc
+284
-102
template.adoc
Release/getADoc.Data/adocTPL/template.adoc
+2
-0
getADoc.bat
Release/getADoc.Data/getADoc.bat
+11
-5
No files found.
Release/getADoc.Data/adocTPL/config.adoc
View file @
a17f2a1f
ifndef::_CONFIG_ADOC[]
ifndef::_CONFIG_ADOC[]
// INCLUDE GUARD
:_CONFIG_ADOC: IncludeGuard
////
[コメント開始]
各種事前定義 ここでは最低限必要なものだけ定義、一覧説明をコメントブロックで記載しておく
定義が不要なら、//でコメントアウト、adoc毎に!(びっくりマーク)を追加すればよい
例. :sectnums!:
[コメント終了]
////
//
//-----------------------------------------------------------------------------------------------------
//
// 事前定義
:doctype: article
:toc
levels: 3
ifndef::UserConfigEnd[]
:toc
: left
:sectnums:
:sectnumlevels: 4
:sectlinks:
:icons: font
endif::UserConfigEnd[]
//[イメージのパスを指定]
:imagesdir: Images
// :lang: ja
ifeval::["{lang}" == "ja"]
:toc-title: 目次
:example-caption:
...
...
@@ -44,108 +31,303 @@ ifeval::["{lang}" == "ja"]
:untitled-label: 無題
:version-label: バージョン
endif::[]
ifeval::["{lang}" != "ja"]
:example-caption:
:caption:
endif::[]
// ここまで空白行禁止(tocが表示されない)
// HTML出力で画像を埋め込む
:data-uri:
// 各種Macro拡張
:hardbreaks:
:experimental:
// Style拡張 [.XXXX]##hogehoge##で使用できる。{ExtendStyle}を表題の直前に記述する
// 属性の前に記載してはいけない。toc: leftなどが無効になる
// 拡張: [.nw]## <自動改行無効、複数空白文字OK> ## .nowrapでもOK。Tableの表幅調整に使用
:ExtendStyle: pass:none[ \
<style> \
.nw{display:inline-block;white-space:pre;} \
.nowrap{display:inline-block;white-space:pre;} \
</style>]
// ExtendStyleは常に有効とする。定義して、もう実行しておく。互換性:何回呼ばれても大丈夫。
:ExtendStyle: pass:none[<style>.nw{display:inline-block;white-space:pre;} .nowrap{display:inline-block;white-space:pre;}</style>]
{ExtendStyle}
// Page幅を無効にする
:FreePage: pass:none[ <style> #header,#content,#footnotes,#footer{max-width:none;} </style>]
// obsolate
:NoWrap: pass:[<span style="display:inline-block;white-space:pre;">]
:Wrap: pass:[<span style="display:inline;white-space:pre;">]
:End: pass:[</span>]
ifdef::FreePage[]
+++<style>#header,#content,#footnotes,#footer{max-width:none;}</style>+++
endif::FreePage[]
// 互換性:{FreePage}がConfigより後で定義された場合は、互換性ため{FreePage}を定義する
ifndef::FreePage[]
:FreePage: pass:none[<style>#header,#content,#footnotes,#footer{max-width:none;}</style>]
endif::FreePage[]
// 改行 {br}
:br: pass:p[ +]
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分
++++
<style>
/* 基本的な書式 */
body {
color: black;
font-family: "ヒラギノ角ゴ ProN W3",monospace;
font-size: 100%;
}
/* 最初のタイトル変更
*/
#content>h1:first-child:not([class]) {
color: black;
font-family: "Yu Mincho",serif;
border-bottom: 2px solid black;/*#ddddd8;*/
font-weight: 500;
font-size: 2rem;
}
/* タイトルのリンク系をリセット
*/
#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,
h4>a.link,h5>a.link,h6>a.link {
color: inherit;
}
/* 各種ヘッダのベース
*/
#content h2,h3,h4,h5,h6 {
color: black;
font-family: "Yu Mincho",serif;
font-weight: bold;
/* 下線 */
text-decoration-line: underline;
text-underline-offset: 0.2rem;
text-decoration-thickness: 1px;
}
/* ヘッダ毎の変更 1rem が本文相当 フォントサイズだけ変更
*/
#content h2 {font-size: 1.8rem;}
#content h3 {font-size: 1.3rem;}
#content h4,h5,h6 {font-size: 1rem;}
/* 目次の調整
*/
#toc li {
line-height: 1.1rem; /* <- 1.3334 toc leftの一行高さ matsuo */
margin-top: 0.0em; /* <- 0.3334em */
}
@media only screen and (min-width: 768px) {body.toc2 {padding-left: 9em;} #toc.toc2 {font-size: 50%; width: 18em;} }
@media only screen and (min-width: 1280px) {body.toc2 {padding-left: 18em;} #toc.toc2 {font-size: 100%;width: 18em;} }
/* Listの変更
*/
ol>li p,ul>li p,ul dd,ol dd,
.olist .olist,
.ulist .ulist,
.ulist .olist,
.olist .ulist {
margin-bottom: 0em /* 0.625em;listの行間 */
}
/* ブロックタイトルの変更
*/
.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,
.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,
.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,
.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title {
font-style: normal;
text-decoration-line: underline;
text-underline-offset: 0.2rem;
text-decoration-thickness: 0.1px;
text-decoration-style: double;
}
/* テーブルの行間を詰める
*/
table thead tr th,table thead tr td,
table tfoot tr th,table tfoot tr td,
table tr th, table tr td {
/*padding: 0.5em 0.625em 0.625em;*/
/*padding: up em left em bottom em;*/
padding: 0.2em 0.625em 0.2em;
}
/* table header colors */
table thead, table tfoot {
background: lightblue;
font-weight: bold;
}
////
#### COMENT START #################
------------------------------------------------------------------
[ドキュメント毎に設定すべきもの]
:toc: left
:source-highlighter: coderay
:docname: = asciidoc
:author: my name
:revnumber: 0.9
:revdate: 2019/12/1
/* table stribe */
tr:nth-child(even) {
background: #f2f2f2;
}
* 意味が不明なものは以下を参照
https://takumon.github.io/asciidoc-syntax-quick-reference-japanese-translation/
/* 画像にボーダー*/
img, .imageblock.bordered img {
border: 0.1px solid black;
background-color: #fffef7;
border-color: #e0e0dc;
-webkit-box-shadow: 0 1px 4px #e0e0dc;
box-shadow: 0 1px 4px #e0e0dc;
}
[属性定義]
:experimental: *各種マクロ拡張時に定義しておく
::module: *モジュール名
:Author: *著者名
:Email: *メールアドレス
:Date: *日付(2020/01/20)
:Revision: Rev.1 * リビジョン指定
:lang: ja * 言語指定
:doctype: book * 言語の種類(ja,...)
:description: * 説明???
:docname: ドキュメント名 * ドキュメント説明
/* 各ブロックの周辺ピクセルを狭める
*/
.admonitionblock>.content,
.audioblock>.content,
.exampleblock>.content,
.imageblock>.content,
.listingblock>.content,
.literalblock>.content,
.stemblock>.content,
.openblock>.content,
.paragraph>.content,
.quoteblock>.content,
table.tableblock>.content,
.verseblock>.content,
.videoblock>.content,
.sidebarblock,
.literalblock,
.literalblock pre,
.listingblock pre:not(.highlight),
.listingblock pre[class="highlight"],
.listingblock pre[class^="highlight "],
.listingblock pre.CodeRay,
.listingblock pre.prettyprint
.exampleblock>.content {
margin-bottom: 0em; /* <-1.25em */
/* padding: 1.25em; */
padding-top: 0.5em;
padding-bottom: 0.5em;
/*padding-left: 1.25em;*/
padding-right: 0.5em;
}
[イメージのパスを指定]
:imagesdir: ./_images
</style>
++++
// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
[ソースハイライト]
:source-highlighter: coderay
[見出し設定]
:sectnums:
セクションに番号On, Offのときはコメントアウトもしくは"!""
// :TocMode: WordWrap or ExpandWidth or Other None WordWrapが初期値
ifndef::TocMode[]
:TocMode: WordWrap
endif::TocMode[]
[キャプチャーのラベル、不要なときは、空指定]
:chapter-label:
[目次作成]
:toc: left
目次 left,right,macro macroの場合は挿入箇所でtoc::[]を記述する
[目次のタイトル]
:toc-title:
ifeval::["{TocMode}" == "WordWrap"]
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分
++++
<style>
/* 目次をタイトル省略して折り返しをしない。 マウスオーバーで、展開表示する
*/
#toc ul.sectlevel1>li {
text-overflow: ellipsis; /* 省略記号を表示する */
overflow: hidden; /* はみ出た部分を表示しない */
white-space: nowrap; /* 行を折り返さない */
}
#toc ul.sectlevel1>li :hover {
color: red;
/* font-size: 1.4rem;*/
white-space: normal; /* 行を折り返す */
background-color: lightyellow;
z-index: 10;
border-radius: 5px;
}
</style>
++++
// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
endif::[]
ifeval::["{TocMode}" == "ExpandWidth"]
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分
++++
<style>
/* ウインドウが狭いときに、目次にマウスオーバーすると、幅を広げる
*/
@media only screen and (min-width: 768px)
{
#toc ul.sectlevel1>li {
overflow: hidden; /* はみ出た部分を表示しない */
white-space: nowrap; /* 行を折り返さない */
text-overflow: ellipsis; /* 省略記号を表示する */
}
div#toc li :hover{
line-height: 1.5rem; /* <- 1.3334 toc leftの一行高さ matsuo */
}
div#toc :hover
/*div#toc ul.sectlevel2>li :hover*/
{
color:red;
white-space: normal; /* 行を折り返さない */
font-size: 0.8rem;
background-color: lightyellow;
position: fixed;
width: auto;
}
}
</style>
++++
// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
endif::[]
[目次 階層レベル]
:toclevels: 3
ifeval::["{CustomIcon}" == "ja"]
:icons: image
:iconsdir: icons
:icontype: png
endif::[]
[各ラベルの日本語設定]
:preface-title: はじめに/まえがき
:appendix-caption: 付録
:caution-caption: 注意
:example-caption: 例
:figure-caption: 図
:important-caption: 重要
:last-update-label: 最終更新
:listing-caption: リスト
:manname-title: 名前
:note-caption: 注記
:toc-title: 目次
:table-caption: 表
:warning-caption: 警告
:tip-caption: ヒント
:untitled-label: 無題
:version-label: バージョン
ifdef::CustomIcon_nouse[]
// ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ css差分
++++
<style>
/* admontinを変更する CAUtion/Note...
*/
.admonitionblock td.icon [class^="fa icon-"] {
font-size: 0.9rem; /* <-2.5em 高さが決まる */
/* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);*/
text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 1); /* 影の指定 */
cursor: default;
line-height: 1;
font-weight: bold;
}
.admonitionblock td.icon .icon-warning:before {
content: "警告"; /* "\f071"*/
/*color: #bf6900;*/
color: blue;
font-size: 0.9rem;
background: SpringGreen;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
border: solid 1px gray;
}
.admonitionblock td.icon .icon-important:before {
content: "重要"; /* "\f071"*/
color: white;;
font-size: 0.9rem;
background: red;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
border: solid 1px gray;
}
.admonitionblock td.icon .icon-caution:before {
content: "注意"; /* "\f071"*/
color: gray;
font-size: 0.9rem;
background: yellow;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
border: solid 1px gray;
}
.admonitionblock td.icon .icon-note:before {
content: "メモ"; /* "\f071"*/
color: white;
font-size: 0.9rem;
background: blue;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
border: solid 1px gray;
}
.admonitionblock td.icon .icon-tip:before {
content: "TIPS";
color: black;
font-size: 0.9rem;
background: lightblue;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding-left: 0.5em;
padding-right: 0.5em;
border: solid 1px gray;
}
#### COMENT END #################
////
</style>
++++
// ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
endif::CustomIcon_nouse[]
// End of ::_CONFIG_ADOC[]
endif::[]
endif::
_CONFIG_ADOC
[]
Release/getADoc.Data/adocTPL/template.adoc
View file @
a17f2a1f
...
...
@@ -8,6 +8,8 @@ include::config.adoc[]
//:!sectnums:
//:imagesdir: Images
// hoge
//@ICON_CUSTOM@
{ExtendStyle}
...
...
Release/getADoc.Data/getADoc.bat
View file @
a17f2a1f
...
...
@@ -31,6 +31,7 @@ include("comfuncs.js");
// exit.push(function(){ if (isOk(stopWach)) echo("exit spend time=",stopWach.stop());});
// [get command-arguments] コマンド引数の取得
var pm = uParam()
// 任意;オプションキーパラメータ群を指定する(なければ行コメントアウト)
// .set("inFile").opt("/I").next("*") .init("") .desc("input file")
...
...
@@ -49,11 +50,13 @@ var pm = uParam()
// [Main process] 処理を記述
var InstRegURL = "HKCU\\Software\\Dainippon Screen Mfg.Co.,Ltd.\\ToolJsFuncScript\\1.0";
var InstPath = readParam.reg(InstRegURL).get("InstallPath");
if ( isNone(InstPath) ){
echo(-1,"警告::インストール先が見つかりません:",InstRegURL);
InstPath = getEnv().exeDir;
}
InstPath = getEnv().exeDir; // レジストリ参照をやめます。exeの場所のみ。
// var InstPath = readParam.reg(InstRegURL).get("InstallPath");
// if ( isNone(InstPath) ){
// echo(-1,"警告::インストール先が見つかりません:",InstRegURL);
// InstPath = getEnv().exeDir;
// }
/////////////////////////////////////////////////////////////
var adocTPL = uHereDoc.hereDoc(function(){/*
...
...
@@ -142,6 +145,9 @@ if ( pm.bOneDoc ) {
}else{
if ((!pm.bForce)&&(!copySure(tgtconfigPath)))
exit(-1);
echo("configPath=",configPath.FP());
echo("tgtconfigPath=",tgtconfigPath.FP());
copyFile(configPath,tgtconfigPath);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment