Update note links

This commit is contained in:
SillyLossy
2023-04-24 13:40:14 +03:00
parent 2752e69388
commit 4b3671c5ad
3 changed files with 71 additions and 51 deletions

View File

@@ -1,4 +1,3 @@
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
@@ -8,7 +7,8 @@ body {
background-attachment: fixed; background-attachment: fixed;
background-size: cover; background-size: cover;
font-family: "Noto Sans", "Noto Color Emoji", sans-serif; font-family: "Noto Sans", "Noto Color Emoji", sans-serif;
font-size:16px; /*1rem*/ font-size: 16px;
/*1rem*/
color: #999; color: #999;
box-sizing: border-box; box-sizing: border-box;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
@@ -41,6 +41,17 @@ code {
display: block; display: block;
} }
a {color: orange; text-decoration:none; border-bottom: 1px dotted orange; } a {
h2, h3 {margin: 0; color:#ccc;} color: orange;
hr {border: 1px solid #999;} text-decoration: none;
border-bottom: 1px dotted orange;
}
h2,
h3 {
color: #ccc;
}
hr {
border: 1px solid #999;
}

View File

@@ -84,7 +84,7 @@
<div id="respective-presets-block" class="width100p"> <div id="respective-presets-block" class="width100p">
<div id="kobold_api-presets"> <div id="kobold_api-presets">
<h3>Kobold Presets <h3>Kobold Presets
<a href="/notes/4" class="notes-link" target="_blank"> <a href="/notes#basicsettings" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h3> </h3>
@@ -95,7 +95,7 @@
<div id="novel_api-presets"> <div id="novel_api-presets">
<h3> <h3>
NovelAI Presets NovelAI Presets
<a href="/notes/7" class="notes-link" target="_blank"> <a href="/notes#settings" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h3> </h3>
@@ -443,7 +443,7 @@
</div> </div>
<div id="novel_api-settings"> <div id="novel_api-settings">
<h4>Novel AI Model <h4>Novel AI Model
<a href="/notes/8" class="notes-link" target="_blank"> <a href="/notes#models" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h4> </h4>
@@ -863,7 +863,7 @@
<h4>API key</h4> <h4>API key</h4>
<h5>Where to get <h5>Where to get
<a href="/notes/6" class="notes-link" target="_blank"> <a href="/notes#apikey" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h5> </h5>
@@ -904,7 +904,7 @@
<form action="javascript:void(null);" method="post" enctype="multipart/form-data"> <form action="javascript:void(null);" method="post" enctype="multipart/form-data">
<h4>API key </h4> <h4>API key </h4>
<h5>Where to get <h5>Where to get
<a href="/notes/oai_api_key" class="notes-link" target="_blank"> <a href="/notes#apikey-1" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h5> </h5>
@@ -977,7 +977,7 @@
</div> </div>
<div class="drawer-content"> <div class="drawer-content">
<h3>Advanced Formatting <h3>Advanced Formatting
<a href="/notes/advanced_formatting" class="notes-link" target="_blank"> <a href="/notes#advancedformatting" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h3> </h3>
@@ -1015,7 +1015,7 @@
<div id="anchors-block"> <div id="anchors-block">
<h4> <h4>
Anchors Order Anchors Order
<a href="/notes/9" class="notes-link" target="_blank"> <a href="/notes#anchors" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h4> </h4>
@@ -1057,7 +1057,7 @@
<div> <div>
<h4> <h4>
Multigen Multigen
<a href="/notes/multigen" class="notes-link" target="_blank"> <a href="/notes#multigen" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h4> </h4>
@@ -1100,7 +1100,7 @@
</div> </div>
</div> </div>
</div> </div>
<h4>How to use <a href="/notes/13" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h4> <h4>How to use <a href="/notes#worldinfo" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h4>
<div id="rm_world_import" class="right_menu" style="display: none;"> <div id="rm_world_import" class="right_menu" style="display: none;">
<form id="form_world_import" action="javascript:void(null);" method="post" enctype="multipart/form-data"> <form id="form_world_import" action="javascript:void(null);" method="post" enctype="multipart/form-data">
<input type="file" id="world_import_file" accept=".json" name="avatar"> <input type="file" id="world_import_file" accept=".json" name="avatar">
@@ -1112,14 +1112,14 @@
<input id="world_info_edit_button" class="menu_button" type="submit" value="Details"> <input id="world_info_edit_button" class="menu_button" type="submit" value="Details">
<div id="world_info_depth_block"> <div id="world_info_depth_block">
<h4> <h4>
Scan Depth <a href="/notes/13_1" class="notes-link" target="_blank"><span class="note-link-span">?</span></a> Scan Depth <a href="/notes#scandepth" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</h4> </h4>
<span id="world_info_depth_counter">depth</span> <span id="world_info_depth_counter">depth</span>
<input type="range" id="world_info_depth" name="volume" min="1" max="10" step="1"> <input type="range" id="world_info_depth" name="volume" min="1" max="10" step="1">
</div> </div>
<div id="world_info_budget_block"> <div id="world_info_budget_block">
<h4> <h4>
Token Budget <a href="/notes/13_2" class="notes-link" target="_blank"><span class="note-link-span">?</span></a> Token Budget <a href="/notes#budget" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</h4> </h4>
<span id="world_info_budget_counter">budget</span> <span id="world_info_budget_counter">budget</span>
<input type="range" id="world_info_budget" name="volume" min="32" max="2048" step="16"> <input type="range" id="world_info_budget" name="volume" min="32" max="2048" step="16">
@@ -1127,7 +1127,7 @@
</div> </div>
<div id="softprompt_block"> <div id="softprompt_block">
<h4>Soft Prompt</h4> <h4>Soft Prompt</h4>
<h5>About soft prompts <a href="/notes/14" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5> <h5>About soft prompts <a href="/notes#softprompts" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5>
<select id="softprompt"> <select id="softprompt">
<option value="">None</option> <option value="">None</option>
</select> </select>
@@ -1267,7 +1267,7 @@
<audio id="audio_message_sound" src="sounds/message.mp3" hidden></audio> <audio id="audio_message_sound" src="sounds/message.mp3" hidden></audio>
<span> <span>
Message Sound Message Sound
<a href="/notes/message_sound" class="notes-link" target="_blank"> <a href="/notes#messagesound" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</span> </span>
@@ -1421,7 +1421,7 @@
<div id="description_div" class="margin-bot-10px"> <div id="description_div" class="margin-bot-10px">
Description Description
<a href="/notes/1" class="notes-link" target="_blank"> <a href="/notes#characterdescription" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</div> </div>
@@ -1430,7 +1430,7 @@
<div id="first_message_div" class="margin-bot-10px"> <div id="first_message_div" class="margin-bot-10px">
First message First message
<a href="/notes/3" class="notes-link" target="_blank"> <a href="/notes#firstmessage" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
@@ -1476,7 +1476,7 @@
</label> </label>
<h5> <h5>
Group reply strategy Group reply strategy
<a href="/notes/group_reply_strategy" class="notes-link" target="_blank"><span class="note-link-span">?</span></a> <a href="/notes#groupreplystrategy" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</h5> </h5>
<label> <label>
<input type="radio" name="rm_group_activation_strategy" value="0" /> <input type="radio" name="rm_group_activation_strategy" value="0" />
@@ -1610,14 +1610,14 @@
<div id="personality_div"> <div id="personality_div">
<hr> <hr>
<h4>Personality summary</h4> <h4>Personality summary</h4>
<h5>A brief description of the personality <a href="/notes/2" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5> <h5>A brief description of the personality <a href="/notes#personalitysummary" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5>
<textarea id="personality_textarea" name="personality" placeholder="" form="form_create" class="text_pole" autocomplete="off" rows="2"></textarea> <textarea id="personality_textarea" name="personality" placeholder="" form="form_create" class="text_pole" autocomplete="off" rows="2"></textarea>
</div> </div>
<div id="scenario_div"> <div id="scenario_div">
<h4>Scenario</h4> <h4>Scenario</h4>
<h5>Circumstances and context of the dialogue <h5>Circumstances and context of the dialogue
<a href="/notes/12" class="notes-link" target="_blank"> <a href="/notes#scenario" class="notes-link" target="_blank">
<span class="note-link-span">?</span> <span class="note-link-span">?</span>
</a> </a>
</h5> </h5>
@@ -1639,7 +1639,7 @@
<div id="mes_example_div"> <div id="mes_example_div">
<div> <div>
<h4>Examples of dialogue</h4> <h4>Examples of dialogue</h4>
<h5>Forms a personality more clearly <a href="/notes/11" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5> <h5>Forms a personality more clearly <a href="/notes#examplesofdialogue" class="notes-link" target="_blank"><span class="note-link-span">?</span></a></h5>
</div> </div>
<textarea id="mes_example_textarea" name="mes_example" placeholder="" form="form_create"></textarea> <textarea id="mes_example_textarea" name="mes_example" placeholder="" form="form_create"></textarea>
</div> </div>
@@ -1655,7 +1655,7 @@
<img src="img/book2.png" id="world_logo"> <img src="img/book2.png" id="world_logo">
<h3> <h3>
World Info Editor World Info Editor
<a href="/notes/13_3" class="notes-link" target="_blank"><span class="note-link-span">?</span></a> <a href="/notes#worldinfoentry" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</h3> </h3>
</div> </div>
<div class="world_popup_expander">&nbsp;</div> <div class="world_popup_expander">&nbsp;</div>
@@ -1764,7 +1764,7 @@
<span id="ChatHistoryCharName"></span> <span id="ChatHistoryCharName"></span>
<br> <br>
Chat History Chat History
<a href="/notes/10" class="notes-link" target="_blank"><span class="note-link-span">?</span></a> <a href="/notes#chatimport" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</div> </div>
<form id="form_import_chat" action="javascript:void(null);" method="post" enctype="multipart/form-data" style="display: none;"> <form id="form_import_chat" action="javascript:void(null);" method="post" enctype="multipart/form-data" style="display: none;">
<input type="file" id="chat_import_file" accept=".json, .jsonl" name="avatar"> <input type="file" id="chat_import_file" accept=".json, .jsonl" name="avatar">

View File

@@ -1,4 +1,5 @@
<html> <!DOCTYPE html>
<html lang="en">
<head> <head>
<title>SillyTavern Guidebook</title> <title>SillyTavern Guidebook</title>
@@ -10,16 +11,24 @@
<script src="/scripts/showdown-toc.min.js"></script> <script src="/scripts/showdown-toc.min.js"></script>
<script type="module"> <script type="module">
const toc = []; const toc = [];
let hash = location.hash;
let converter = new showdown.Converter({ extensions: [showdownToc({ toc })] } ); let converter = new showdown.Converter({ extensions: [showdownToc({ toc })] } );
let text = await (await fetch('/notes/content.md')).text(); let text = await (await fetch('/notes/content.md')).text();
let content = document.getElementById('content'); let content = document.getElementById('content');
content.innerHTML = converter.makeHtml(text); content.innerHTML = converter.makeHtml(text);
const link = document.createElement('a');
link.href = hash;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
</script> </script>
</head> </head>
<body> <body>
<div id="main"> <div id="main">
<div id="content"> <div id="content">
<!-- To change the guidebook content edit the content.md file -->
<!-- Then it will be dynamically inserted here -->
</div> </div>
</div> </div>
</body> </body>