Convert public directory from submodule to normal directory
- Remove public from git submodule tracking - Add all public directory contents as regular files - Fixes GitHub Actions error: "No url found for submodule path 'public' in .gitmodules" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,641 @@
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<title>bluesky · hello world! bluesky</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
|
||||
<meta name="author" content="syui">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/style.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<link rel="next" href="2.html" />
|
||||
|
||||
|
||||
<link rel="prev" href="./" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
<div class="book-summary">
|
||||
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search" />
|
||||
</div>
|
||||
|
||||
|
||||
<nav role="navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.1" data-path="../">
|
||||
|
||||
<a href="../">
|
||||
|
||||
|
||||
hello world! bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.2" data-path="../card/">
|
||||
|
||||
<a href="../card/">
|
||||
|
||||
|
||||
card
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3" data-path="../c1/">
|
||||
|
||||
<a href="../c1/">
|
||||
|
||||
|
||||
part 1
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.3.1" data-path="../c1/1.html">
|
||||
|
||||
<a href="../c1/1.html">
|
||||
|
||||
|
||||
quick start
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3.2" data-path="../c1/2.html">
|
||||
|
||||
<a href="../c1/2.html">
|
||||
|
||||
|
||||
example
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
|
||||
part 2
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter active" data-level="1.4.1" data-path="1.html">
|
||||
|
||||
<a href="1.html">
|
||||
|
||||
|
||||
bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="2.html">
|
||||
|
||||
<a href="2.html">
|
||||
|
||||
|
||||
terminal
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="3.html">
|
||||
|
||||
<a href="3.html">
|
||||
|
||||
|
||||
shell
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.4" data-path="4.html">
|
||||
|
||||
<a href="4.html">
|
||||
|
||||
|
||||
rust
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="../c3/">
|
||||
|
||||
<a href="../c3/">
|
||||
|
||||
|
||||
part 3
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="../c3/1.html">
|
||||
|
||||
<a href="../c3/1.html">
|
||||
|
||||
|
||||
hello world
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="../c3/2.html">
|
||||
|
||||
<a href="../c3/2.html">
|
||||
|
||||
|
||||
seahorse
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="../c3/3.html">
|
||||
|
||||
<a href="../c3/3.html">
|
||||
|
||||
|
||||
reqwest
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="../c4/">
|
||||
|
||||
<a href="../c4/">
|
||||
|
||||
|
||||
part 4
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="../c4/0.html">
|
||||
|
||||
<a href="../c4/0.html">
|
||||
|
||||
|
||||
ai
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="../c4/1.html">
|
||||
|
||||
<a href="../c4/1.html">
|
||||
|
||||
|
||||
config
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="../c4/2.html">
|
||||
|
||||
<a href="../c4/2.html">
|
||||
|
||||
|
||||
mention
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="../c4/3.html">
|
||||
|
||||
<a href="../c4/3.html">
|
||||
|
||||
|
||||
base64
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="../c5/">
|
||||
|
||||
<a href="../c5/">
|
||||
|
||||
|
||||
part 5
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="../c5/1.html">
|
||||
|
||||
<a href="../c5/1.html">
|
||||
|
||||
|
||||
notify
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="../c5/2.html">
|
||||
|
||||
<a href="../c5/2.html">
|
||||
|
||||
|
||||
timeline
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="../c5/3.html">
|
||||
|
||||
<a href="../c5/3.html">
|
||||
|
||||
|
||||
refresh
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="../end/">
|
||||
|
||||
<a href="../end/">
|
||||
|
||||
|
||||
end
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="book-body">
|
||||
|
||||
<div class="body-inner">
|
||||
|
||||
|
||||
|
||||
<div class="book-header" role="navigation">
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href=".." >bluesky</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page-wrapper" tabindex="-1" role="main">
|
||||
<div class="page-inner">
|
||||
|
||||
<div id="book-search-results">
|
||||
<div class="search-noresults">
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h3 id="bluesky">bluesky</h3>
|
||||
<p><a href="https://bsky.app" target="_blank">bluesky</a>はprotocol(プロトコル)に<a href="https://github.com/bluesky-social/atproto" target="_blank">at</a>を採用したsnsです。</p>
|
||||
<p><code>at</code>は以降、<code>atproto</code>とします。</p>
|
||||
<p>blueskyは現在、<a href="https://bsky.app/profile/did:plc:oc6vwdlmk2kqyida5i74d3p5/follows" target="_blank">bsky.team</a>が開発、運用している<code>atproto</code>のモデルサービスという位置づけです。</p>
|
||||
<p>bsky.teamの目標は、様々なサービスの裏で<code>atproto</code>が採用され、サービス間で意思疎通を図れるようにすることです。</p>
|
||||
<p>今までのサービスはそのサービス内でしかアカウントが有効ではありませんでした。そのためサービスごとにアカウントを切り替えてやり取りする必要がありました。これを変えていこうという試みです。</p>
|
||||
<p>blueskyは、<code>pds</code>, <code>plc</code>, <code>bgs</code>で動作することを予定しています。</p>
|
||||
<p>それぞれの役割を述べると、pdsがbluesky本体です。</p>
|
||||
<p>plcは<code>dns</code>のようなものでhandleとdidを登録し、名前解決を行います。</p>
|
||||
<p>blueskyは、基本的にpdsのみで動作します。</p>
|
||||
<p>しかし、アカウント作成時はplcに接続するため、plcへの接続がないとエラーになります。</p>
|
||||
<p>アカウントが作成されている状態ではplcは必ずしも必要ありません。handleの登録や変更があったときに必要になります。</p>
|
||||
<p>bgsは他のpdsとつながる際、アカウントのtimelineを構築します。</p>
|
||||
<div class="mermaid">
|
||||
graph TD;
|
||||
A[pds]-->B[plc];
|
||||
C[pds]-->B[plc];
|
||||
D[pds]-->B[plc];
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mermaid">
|
||||
graph TD;
|
||||
A[pds]-->B[bgs];
|
||||
C[pds]-->B[bgs];
|
||||
D[pds]-->B[bgs];
|
||||
</div>
|
||||
|
||||
<h4 id="dns">dns</h4>
|
||||
<p>上記のdnsとは何かというと、インターネット上で名前解決を行うサーバーのことを言います。</p>
|
||||
<p>インターネットでは<code>ip address</code>という数字で繋がります。</p>
|
||||
<p>例えば、googleに接続する場合は<code>172.217.25.174</code>です。</p>
|
||||
<pre><code class="lang-sh">$ dig google.com
|
||||
google.com. 291 IN A 172.217.25.174
|
||||
</code></pre>
|
||||
<p>試しにブラウザにこの数字を入れてみてください。<code>google.com</code>につながるはずです。</p>
|
||||
<p>しかし、数字というのは人間にとって覚えにくく、扱いにくいものなので、通常は、アルファベットに置き換えた名前がつけられます。</p>
|
||||
<p>その名前を<code>ip address</code>という数字につなげる役割を持ったサーバーをdnsと言います。</p>
|
||||
<p>以下は、目的のホストまでの経路を表示するコマンド。いくつかのサーバーを経由して繋がっている事がわかる。</p>
|
||||
<pre><code class="lang-sh">$ traceroute google.com
|
||||
20.27.177.113
|
||||
17.253.144.10
|
||||
172.217.25.174
|
||||
</code></pre>
|
||||
<p>自分のip addressを知りたければ、<code>ipinfo.io</code>を使うと便利。</p>
|
||||
<pre><code class="lang-sh">$ curl <span class="hljs-_">-s</span>L ipinfo.io
|
||||
20.27.177.113
|
||||
</code></pre>
|
||||
<h4 id="plc">plc</h4>
|
||||
<p>現時点でよく使われているplcです。すべてbsky.teamが提供しています。</p>
|
||||
<p><a href="https://plc.directory" target="_blank">https://plc.directory</a></p>
|
||||
<p><a href="https://plc.bsky-sandbox.dev" target="_blank">https://plc.bsky-sandbox.dev</a></p>
|
||||
<p>具体的には以下のように使います。</p>
|
||||
<pre><code class="lang-sh">https://plc.directory/<span class="hljs-built_in">export</span>
|
||||
|
||||
https://plc.directory/<span class="hljs-built_in">export</span>?after=1970-01-01T00:00:00.000Z
|
||||
|
||||
https://plc.directory/did:plc:oc6vwdlmk2kqyida5i74d3p5
|
||||
|
||||
https://plc.directory/did:plc:oc6vwdlmk2kqyida5i74d3p5/<span class="hljs-built_in">log</span>
|
||||
</code></pre>
|
||||
<div><p class="code-filename">.env</p></div>
|
||||
<pre><code class="lang-sh"><span class="hljs-comment">#DID_PLC_URL=https://plc.directory</span>
|
||||
DID_PLC_URL=https://plc.bsky-sandbox.dev
|
||||
</code></pre>
|
||||
<h4 id="便利なサービス">便利なサービス</h4>
|
||||
<p>blueskyはapiもpdsも公開されているので様々なサービスが開発されています。</p>
|
||||
<p>代表的なサービスを紹介します。</p>
|
||||
<p><a href="https://firesky.tv" target="_blank">https://firesky.tv</a> : グローバルタイムラインのストリーム。色々と設定できたり、フィルタリングできたり</p>
|
||||
<p><a href="https://bsky.jazco.dev" target="_blank">https://bsky.jazco.dev</a> : ユーザーの視覚化</p>
|
||||
<p><a href="https://bsky.jazco.dev/stats" target="_blank">https://bsky.jazco.dev/stats</a> : ユーザーのポスト数</p>
|
||||
<p><a href="https://vqv.app" target="_blank">https://vqv.app</a> : ユーザーのプロフィール集計など</p>
|
||||
<p><a href="https://atscan.net" target="_blank">https://atscan.net</a> : pdsのスキャンやdid</p>
|
||||
<p><a href="https://skybridge.fly.dev" target="_blank">https://skybridge.fly.dev</a> : mastodonのclientでblueskyをやるためのurl</p>
|
||||
<p><a href="https://tapbots.com/ivory" target="_blank">https://tapbots.com/ivory</a> : mastodon clientのivoryに対応</p>
|
||||
<p><a href="https://skyfeed.app" target="_blank">https://skyfeed.app</a> : feedの生成</p>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<div class="has-results">
|
||||
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
|
||||
</div>
|
||||
<div class="no-results">
|
||||
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="./" class="navigation navigation-prev " aria-label="Previous page: part 2">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="2.html" class="navigation navigation-next " aria-label="Next page: terminal">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"bluesky","level":"1.4.1","depth":2,"next":{"title":"terminal","level":"1.4.2","depth":2,"path":"c2/2.md","ref":"c2/2.md","articles":[]},"previous":{"title":"part 2","level":"1.4","depth":1,"path":"c2/README.md","ref":"c2/README.md","articles":[{"title":"bluesky","level":"1.4.1","depth":2,"path":"c2/1.md","ref":"c2/1.md","articles":[]},{"title":"terminal","level":"1.4.2","depth":2,"path":"c2/2.md","ref":"c2/2.md","articles":[]},{"title":"shell","level":"1.4.3","depth":2,"path":"c2/3.md","ref":"c2/3.md","articles":[]},{"title":"rust","level":"1.4.4","depth":2,"path":"c2/4.md","ref":"c2/4.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/1.md","mtime":"2023-07-20T10:10:11.244Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-09-16T08:55:27.618Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook.js"></script>
|
||||
<script src="../gitbook/theme.js"></script>
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -0,0 +1,669 @@
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<title>terminal · hello world! bluesky</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
|
||||
<meta name="author" content="syui">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/style.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<link rel="next" href="3.html" />
|
||||
|
||||
|
||||
<link rel="prev" href="1.html" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
<div class="book-summary">
|
||||
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search" />
|
||||
</div>
|
||||
|
||||
|
||||
<nav role="navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.1" data-path="../">
|
||||
|
||||
<a href="../">
|
||||
|
||||
|
||||
hello world! bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.2" data-path="../card/">
|
||||
|
||||
<a href="../card/">
|
||||
|
||||
|
||||
card
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3" data-path="../c1/">
|
||||
|
||||
<a href="../c1/">
|
||||
|
||||
|
||||
part 1
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.3.1" data-path="../c1/1.html">
|
||||
|
||||
<a href="../c1/1.html">
|
||||
|
||||
|
||||
quick start
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3.2" data-path="../c1/2.html">
|
||||
|
||||
<a href="../c1/2.html">
|
||||
|
||||
|
||||
example
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
|
||||
part 2
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.4.1" data-path="1.html">
|
||||
|
||||
<a href="1.html">
|
||||
|
||||
|
||||
bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter active" data-level="1.4.2" data-path="2.html">
|
||||
|
||||
<a href="2.html">
|
||||
|
||||
|
||||
terminal
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="3.html">
|
||||
|
||||
<a href="3.html">
|
||||
|
||||
|
||||
shell
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.4" data-path="4.html">
|
||||
|
||||
<a href="4.html">
|
||||
|
||||
|
||||
rust
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="../c3/">
|
||||
|
||||
<a href="../c3/">
|
||||
|
||||
|
||||
part 3
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="../c3/1.html">
|
||||
|
||||
<a href="../c3/1.html">
|
||||
|
||||
|
||||
hello world
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="../c3/2.html">
|
||||
|
||||
<a href="../c3/2.html">
|
||||
|
||||
|
||||
seahorse
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="../c3/3.html">
|
||||
|
||||
<a href="../c3/3.html">
|
||||
|
||||
|
||||
reqwest
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="../c4/">
|
||||
|
||||
<a href="../c4/">
|
||||
|
||||
|
||||
part 4
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="../c4/0.html">
|
||||
|
||||
<a href="../c4/0.html">
|
||||
|
||||
|
||||
ai
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="../c4/1.html">
|
||||
|
||||
<a href="../c4/1.html">
|
||||
|
||||
|
||||
config
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="../c4/2.html">
|
||||
|
||||
<a href="../c4/2.html">
|
||||
|
||||
|
||||
mention
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="../c4/3.html">
|
||||
|
||||
<a href="../c4/3.html">
|
||||
|
||||
|
||||
base64
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="../c5/">
|
||||
|
||||
<a href="../c5/">
|
||||
|
||||
|
||||
part 5
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="../c5/1.html">
|
||||
|
||||
<a href="../c5/1.html">
|
||||
|
||||
|
||||
notify
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="../c5/2.html">
|
||||
|
||||
<a href="../c5/2.html">
|
||||
|
||||
|
||||
timeline
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="../c5/3.html">
|
||||
|
||||
<a href="../c5/3.html">
|
||||
|
||||
|
||||
refresh
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="../end/">
|
||||
|
||||
<a href="../end/">
|
||||
|
||||
|
||||
end
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="book-body">
|
||||
|
||||
<div class="body-inner">
|
||||
|
||||
|
||||
|
||||
<div class="book-header" role="navigation">
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href=".." >terminal</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page-wrapper" tabindex="-1" role="main">
|
||||
<div class="page-inner">
|
||||
|
||||
<div id="book-search-results">
|
||||
<div class="search-noresults">
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h3 id="terminal">terminal</h3>
|
||||
<p>ここでは、osごとに必要なコマンドや環境を用意することを目標にします。</p>
|
||||
<p><code>terminal(ターミナル)</code>とはwindowsでいうcmd(コマンドプロンプト)が有名です。わかりやすく言うと黒い画面を指します。<code>端末</code>や<code>term</code>などとも呼ばれたりします。</p>
|
||||
<p>terminalにも色々なterminal、つまり、アプリ(ソフトウェア)があります。</p>
|
||||
<p>個人的には<a href="https://wezfurlong.org/wezterm/installation.html" target="_blank">wezterm</a>がオススメですが、ここでは、os固有のものを使用します。</p>
|
||||
<h4 id="package-manager">package manager</h4>
|
||||
<p>最初に、<code>package manager(パッケージ・マネージャー)</code>の解説を行います。</p>
|
||||
<p>今回、それぞれのosでパッケージ・マネージャーの導入が必要です。</p>
|
||||
<p>なお、ここでのパッケージやプログラムはアプリと言いかえることもできます。</p>
|
||||
<p>パッケージ・マネージャーは、アプリのインストールを簡単にしてくるものと考えてください。</p>
|
||||
<p>通常、アプリはsource(ソース)をbuild(ビルド)またはcompile(コンパイル)し、作成されたbinary(バイナリ)を実行することで動作します。</p>
|
||||
<p>windowsでいうと<code>.exe</code>がbinaryに当たります。</p>
|
||||
<p>binaryは、osによって異なります。</p>
|
||||
<p>ちなみに、sourceは<code>src</code>と略され、binaryは<code>bin</code>に略されることが多いです。</p>
|
||||
<p>話を戻すと、どのパッケージ(binary)をどこからダウンロードし、どこに置くのか、それらを自動処理してくれるのがパッケージマネージャーです。</p>
|
||||
<p>なぜこのようになっているのかというと、sourceのbuildには時間がかかるからです。</p>
|
||||
<p>ですから、大体のパッケージは既に当該osでbuildされているbinaryをserver(サーバー)からダウンロードしてくるだけです。</p>
|
||||
<p>その役割を担っているのが大半のパッケージ・マネージャーと呼ばれるものになります。</p>
|
||||
<p>以降、このパッケージ・マネージャーを導入して<code>terminal</code>から使うことになります。</p>
|
||||
<h4 id="windows">windows</h4>
|
||||
<p>windowsユーザーの方に向けて必要な環境を解説します。</p>
|
||||
<ul>
|
||||
<li><p>winget</p>
|
||||
</li>
|
||||
<li><p>scoop</p>
|
||||
</li>
|
||||
<li><p>windows terminal</p>
|
||||
</li>
|
||||
<li><p>wsl</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>windows環境は注意が必要です。windowsは基本的にdocs通り動かないということを覚えておいてください。</p>
|
||||
<p>例えば、<a href="https://github.com/microsoft" target="_blank">github/microsoft</a>に書いてあるコマンドを実行しても、大半は動きません。動かないことがあります。</p>
|
||||
<p>したがって、ご自身の環境に合わせて設定したり読み替えたりする必要が出てきます。</p>
|
||||
<p>まず、windowsのパッケージ・マネージャーとして<a href="https://github.com/microsoft/winget-cli" target="_blank">winget</a>を導入します。</p>
|
||||
<p><code>win+r</code>を押して<code>powershell</code>と入力し、<a href="https://github.com/PowerShell/PowerShell/releases/" target="_blank">powershell</a>を起動します。powershellは以降、<code>pwsh</code>と略します。</p>
|
||||
<p>以下のコマンドを実行します。</p>
|
||||
<div><p class="code-filename">pwsh</p></div>
|
||||
<pre><code class="lang-sh">Install-Module -Name Microsoft.W<span class="hljs-keyword">in</span>Get.Client
|
||||
</code></pre>
|
||||
<pre><code class="lang-sh">Untrusted repository
|
||||
You are installing the modules from an untrusted repository. If you trust this repository, change its
|
||||
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
|
||||
<span class="hljs-string">'PSGallery'</span>?
|
||||
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is <span class="hljs-string">"N"</span>): A
|
||||
</code></pre>
|
||||
<p>次に<a href="https://github.com/microsoft/terminal" target="_blank">windows terminal</a>をインストールします。</p>
|
||||
<div><p class="code-filename">パッケージの検索</p></div>
|
||||
<pre><code class="lang-sh">winget search <span class="hljs-string">"windows terminal"</span>
|
||||
</code></pre>
|
||||
<pre><code> Name Id Version Source
|
||||
--------------------------------------------------------------------------------
|
||||
Windows Terminal 9N0DX20HK701 Unknown msstore
|
||||
Windows Terminal Preview 9N8G5RFZ9XK3 Unknown msstore
|
||||
Windows Terminal Microsoft.WindowsTerminal 1.16.10261.0 winget
|
||||
Windows Terminal Preview Microsoft.WindowsTerminal.Preview 1.17.10234.0 winget
|
||||
</code></pre><div><p class="code-filename">terminalのインストール</p></div>
|
||||
<pre><code class="lang-sh">winget install 9N0DX20HK701
|
||||
or
|
||||
winget install Microsoft.WindowsTerminal
|
||||
</code></pre>
|
||||
<p>windowsはshellが非常に扱いづらいので、wslでlinux(ubuntu)を動作させます。基本的にrustやshellはlinux環境を前提に解説します。</p>
|
||||
<div><p class="code-filename">wslの導入</p></div>
|
||||
<pre><code class="lang-sh">wsl --install
|
||||
wsl --install <span class="hljs-_">-d</span> Ubuntu
|
||||
</code></pre>
|
||||
<p>もしlinuxではなくwindows環境がいい場合は、パッケージ・マネージャーの<a href="https://scoop.sh/" target="_blank">scoop</a>などから<code>curl</code>などをインストールして対応してください。</p>
|
||||
<div><p class="code-filename">scoopのインストール</p></div>
|
||||
<pre><code class="lang-sh">Set-ExecutionPolicy RemoteSigned -Scope CurrentUser <span class="hljs-comment"># Optional: Needed to run a remote script the first time</span>
|
||||
irm get.scoop.sh | iex
|
||||
</code></pre>
|
||||
<div><p class="code-filename">pwsh</p></div>
|
||||
<pre><code class="lang-sh">scoop install curl git rust
|
||||
</code></pre>
|
||||
<p><code>pwsh</code>をinstall, updateします。</p>
|
||||
<pre><code class="lang-sh">winget install Microsoft.PowerShell
|
||||
winget upgrade --all
|
||||
</code></pre>
|
||||
<h4 id="mac">mac</h4>
|
||||
<ul>
|
||||
<li><p>terminal</p>
|
||||
</li>
|
||||
<li><p>homebrew</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p><code>mac</code>の場合はデフォルトのterminalを使用します。</p>
|
||||
<p>finderを開いて<code>cmd+shift+u</code>を押します。その中にterminal(ターミナル.app)があると思います。</p>
|
||||
<p>まずパッケージ・マネージャーの<a href="https://brew.sh" target="_blank">homebrew</a>をインストールします。</p>
|
||||
<div><p class="code-filename">brewのインストール</p></div>
|
||||
<pre><code class="lang-sh">/bin/bash -c <span class="hljs-string">"<span class="hljs-variable">$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)</span>"</span>
|
||||
</code></pre>
|
||||
<pre><code class="lang-sh">brew install curl git zsh rust
|
||||
</code></pre>
|
||||
<p><code>cargo build</code>のerrorが出る場合、xcodeの<a href="https://developer.apple.com/forums/thread/660649" target="_blank">command line tools</a>をインストールする必要があるかもしれません。</p>
|
||||
<pre><code class="lang-sh">$ xcode-select --install
|
||||
</code></pre>
|
||||
<h4 id="linux">linux</h4>
|
||||
<p>linuxユーザーは説明が不要なので省略します。</p>
|
||||
<p>私は<a href="https://www.archlinux.jp/" target="_blank">archlinux</a>を使用します。</p>
|
||||
<pre><code class="lang-sh">pacman -Syu curl git zsh rust
|
||||
</code></pre>
|
||||
<pre><code class="lang-sh">$ cargo version
|
||||
cargo 1.70.0
|
||||
</code></pre>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<div class="has-results">
|
||||
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
|
||||
</div>
|
||||
<div class="no-results">
|
||||
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="1.html" class="navigation navigation-prev " aria-label="Previous page: bluesky">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="3.html" class="navigation navigation-next " aria-label="Next page: shell">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"terminal","level":"1.4.2","depth":2,"next":{"title":"shell","level":"1.4.3","depth":2,"path":"c2/3.md","ref":"c2/3.md","articles":[]},"previous":{"title":"bluesky","level":"1.4.1","depth":2,"path":"c2/1.md","ref":"c2/1.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/2.md","mtime":"2023-08-14T14:12:32.025Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-09-16T08:55:27.618Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook.js"></script>
|
||||
<script src="../gitbook/theme.js"></script>
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -0,0 +1,641 @@
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<title>shell · hello world! bluesky</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
|
||||
<meta name="author" content="syui">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/style.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<link rel="next" href="4.html" />
|
||||
|
||||
|
||||
<link rel="prev" href="2.html" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
<div class="book-summary">
|
||||
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search" />
|
||||
</div>
|
||||
|
||||
|
||||
<nav role="navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.1" data-path="../">
|
||||
|
||||
<a href="../">
|
||||
|
||||
|
||||
hello world! bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.2" data-path="../card/">
|
||||
|
||||
<a href="../card/">
|
||||
|
||||
|
||||
card
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3" data-path="../c1/">
|
||||
|
||||
<a href="../c1/">
|
||||
|
||||
|
||||
part 1
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.3.1" data-path="../c1/1.html">
|
||||
|
||||
<a href="../c1/1.html">
|
||||
|
||||
|
||||
quick start
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3.2" data-path="../c1/2.html">
|
||||
|
||||
<a href="../c1/2.html">
|
||||
|
||||
|
||||
example
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
|
||||
part 2
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.4.1" data-path="1.html">
|
||||
|
||||
<a href="1.html">
|
||||
|
||||
|
||||
bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="2.html">
|
||||
|
||||
<a href="2.html">
|
||||
|
||||
|
||||
terminal
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter active" data-level="1.4.3" data-path="3.html">
|
||||
|
||||
<a href="3.html">
|
||||
|
||||
|
||||
shell
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.4" data-path="4.html">
|
||||
|
||||
<a href="4.html">
|
||||
|
||||
|
||||
rust
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="../c3/">
|
||||
|
||||
<a href="../c3/">
|
||||
|
||||
|
||||
part 3
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="../c3/1.html">
|
||||
|
||||
<a href="../c3/1.html">
|
||||
|
||||
|
||||
hello world
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="../c3/2.html">
|
||||
|
||||
<a href="../c3/2.html">
|
||||
|
||||
|
||||
seahorse
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="../c3/3.html">
|
||||
|
||||
<a href="../c3/3.html">
|
||||
|
||||
|
||||
reqwest
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="../c4/">
|
||||
|
||||
<a href="../c4/">
|
||||
|
||||
|
||||
part 4
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="../c4/0.html">
|
||||
|
||||
<a href="../c4/0.html">
|
||||
|
||||
|
||||
ai
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="../c4/1.html">
|
||||
|
||||
<a href="../c4/1.html">
|
||||
|
||||
|
||||
config
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="../c4/2.html">
|
||||
|
||||
<a href="../c4/2.html">
|
||||
|
||||
|
||||
mention
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="../c4/3.html">
|
||||
|
||||
<a href="../c4/3.html">
|
||||
|
||||
|
||||
base64
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="../c5/">
|
||||
|
||||
<a href="../c5/">
|
||||
|
||||
|
||||
part 5
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="../c5/1.html">
|
||||
|
||||
<a href="../c5/1.html">
|
||||
|
||||
|
||||
notify
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="../c5/2.html">
|
||||
|
||||
<a href="../c5/2.html">
|
||||
|
||||
|
||||
timeline
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="../c5/3.html">
|
||||
|
||||
<a href="../c5/3.html">
|
||||
|
||||
|
||||
refresh
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="../end/">
|
||||
|
||||
<a href="../end/">
|
||||
|
||||
|
||||
end
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="book-body">
|
||||
|
||||
<div class="body-inner">
|
||||
|
||||
|
||||
|
||||
<div class="book-header" role="navigation">
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href=".." >shell</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page-wrapper" tabindex="-1" role="main">
|
||||
<div class="page-inner">
|
||||
|
||||
<div id="book-search-results">
|
||||
<div class="search-noresults">
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h3 id="shell">shell</h3>
|
||||
<p>パッケージ・マネージャーが導入できたと思うので、まずは<code>curl</code>をインストールしてみてください。</p>
|
||||
<pre><code class="lang-sh"><span class="hljs-comment"># windows</span>
|
||||
scoop install curl
|
||||
|
||||
<span class="hljs-comment"># mac</span>
|
||||
brew install curl
|
||||
|
||||
<span class="hljs-comment"># linux(ubuntu)</span>
|
||||
sudo apt install curl
|
||||
</code></pre>
|
||||
<p>そして、terminalで以下のコマンドを実行してください。</p>
|
||||
<pre><code class="lang-sh">curl https://bsky.social/xrpc/_health
|
||||
</code></pre>
|
||||
<p>結果は、以下の通り。bluesky(bsky.social)のpdsのversionが返ってくるはずです。</p>
|
||||
<div><p class="code-filename">output</p></div>
|
||||
<pre><code class="lang-sh">{<span class="hljs-string">"version"</span>:<span class="hljs-string">"b2ef3865bc143bfe4eef4a46dbd6a44053fa270d"</span>}
|
||||
</code></pre>
|
||||
<p>なお、<code>curl</code>がうまく動作しない場合、インストールされたbinaryにpath(パス)が通っていない事が考えられます。</p>
|
||||
<p>これも主にwindowsで発生しやすいと思われます。</p>
|
||||
<p>ここで、pathについて少し解説します。</p>
|
||||
<h4 id="path">path</h4>
|
||||
<p>terminalを起動すると、そこではshellと呼ばれるプログラムが待機されています。</p>
|
||||
<p>ユーザーはこのshellを通してコマンドを実行することになります。</p>
|
||||
<p>shellにも色々なshellがあります。</p>
|
||||
<p>例えば、windowsにはmicrosoftの<code>cmd</code>, <code>pwsh</code>というshellがあります。</p>
|
||||
<p>unix(mac), linux(ubuntu)の場合は<code>bash</code>, <code>zsh</code>などがあります。</p>
|
||||
<p>shellはコマンドを実行する際、<code>PATH</code>に追加されているディレクトリを省略することができます。</p>
|
||||
<p>例えば、<code>curl</code>が<code>/usr/bin/curl</code>にインストールされたとしましょう。この場合は、shellは以下のコマンドを実行しなければなりません。</p>
|
||||
<pre><code class="lang-sh">/usr/bin/curl --help
|
||||
</code></pre>
|
||||
<p>しかし、<code>PATH</code>に<code>/usr/bin</code>が追加されている場合、ディレクトリの記述を省略することができます。</p>
|
||||
<pre><code class="lang-sh">curl --help
|
||||
</code></pre>
|
||||
<p>プログラム本体(binary)がどこにあるのか探す場合は、以下のようなコマンドを使います。</p>
|
||||
<pre><code class="lang-sh"><span class="hljs-built_in">which</span> curl
|
||||
</code></pre>
|
||||
<p>ただし、pathが通っていないと使えません。</p>
|
||||
<p>pathを通すには、環境変数に当該ディレクトリを記述します。</p>
|
||||
<pre><code class="lang-sh">PATH=<span class="hljs-variable">$PATH</span>:/usr/bin
|
||||
</code></pre>
|
||||
<p>なお、ディレクトリ(directory)は<code>dir</code>や<code>フォルダ</code>と呼ばれることがあります。</p>
|
||||
<h4 id="記法の">記法の"$"</h4>
|
||||
<p>次に、shellの記述方式に関する注意点を書きます。</p>
|
||||
<pre><code class="lang-sh"><span class="hljs-built_in">which</span> curl
|
||||
</code></pre>
|
||||
<pre><code class="lang-sh">$ <span class="hljs-built_in">which</span> curl
|
||||
</code></pre>
|
||||
<p>これらは同じ意味を持ちます。</p>
|
||||
<p>もし文章でshellの実行を説明する場合、先頭に<code>$</code>を記述する慣習があります。</p>
|
||||
<p>この<code>$</code>は「shellで実行します」という意味です。</p>
|
||||
<p>例えば、コマンドの実行結果と一緒に載せたい場合、下記のようになります。</p>
|
||||
<pre><code class="lang-sh">$ <span class="hljs-built_in">which</span> curl
|
||||
/usr/bin/curl
|
||||
</code></pre>
|
||||
<p>このようにコマンドと実行結果を一緒に載せたい場合がよくあり、もし<code>$</code>がないと、どちらがコマンドで、どちらが実行結果かが分かりづらくなるからです。</p>
|
||||
<p>本書では、コピーの弊害などを考慮して、<code>$</code>をなるべく省略しています。</p>
|
||||
<p>しかし、本来であれば、全てのコードレイアウトにshellで実行する場合は<code>$</code>を記述すべきと考えられています。</p>
|
||||
<h4 id="shebang">shebang</h4>
|
||||
<p>次に、shell script(シェル・スクリプト)やshebang(シバン)について解説します。</p>
|
||||
<p>この辺はshellによって違いがありますが、<code>bash</code>を前提に話をします。</p>
|
||||
<p>テキストファイルに以下を記述して、実行権限を与えて実行してください。</p>
|
||||
<div><p class="code-filename">test.sh</p></div>
|
||||
<pre><code class="lang-sh"><span class="hljs-meta">#!/bin/bash</span>
|
||||
curl https://bsky.social/xrpc/_health
|
||||
</code></pre>
|
||||
<p>実行権限の付与、及び実行は以下のコマンドです。</p>
|
||||
<pre><code class="lang-sh">chmod +x test.sh
|
||||
./test.sh
|
||||
</code></pre>
|
||||
<p>するとbsky.socialのversionが出力されます。</p>
|
||||
<pre><code class="lang-sh">{<span class="hljs-string">"version"</span>:<span class="hljs-string">"b2ef3865bc143bfe4eef4a46dbd6a44053fa270d"</span>}
|
||||
</code></pre>
|
||||
<p>テキストファイルの最初の行<code>#!/bin/bash</code>がシバンと呼ばれるものです。</p>
|
||||
<p>ここで、テキストファイルをどのプログラム言語で実行するのかが指定されます。</p>
|
||||
<p>次はプログラム言語の簡単な解説を行います。</p>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<div class="has-results">
|
||||
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
|
||||
</div>
|
||||
<div class="no-results">
|
||||
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="2.html" class="navigation navigation-prev " aria-label="Previous page: terminal">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="4.html" class="navigation navigation-next " aria-label="Next page: rust">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"shell","level":"1.4.3","depth":2,"next":{"title":"rust","level":"1.4.4","depth":2,"path":"c2/4.md","ref":"c2/4.md","articles":[]},"previous":{"title":"terminal","level":"1.4.2","depth":2,"path":"c2/2.md","ref":"c2/2.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/3.md","mtime":"2023-07-21T09:07:50.025Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-09-16T08:55:27.618Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook.js"></script>
|
||||
<script src="../gitbook/theme.js"></script>
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -0,0 +1,581 @@
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<title>rust · hello world! bluesky</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
|
||||
<meta name="author" content="syui">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/style.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<link rel="next" href="../c3/" />
|
||||
|
||||
|
||||
<link rel="prev" href="3.html" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
<div class="book-summary">
|
||||
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search" />
|
||||
</div>
|
||||
|
||||
|
||||
<nav role="navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.1" data-path="../">
|
||||
|
||||
<a href="../">
|
||||
|
||||
|
||||
hello world! bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.2" data-path="../card/">
|
||||
|
||||
<a href="../card/">
|
||||
|
||||
|
||||
card
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3" data-path="../c1/">
|
||||
|
||||
<a href="../c1/">
|
||||
|
||||
|
||||
part 1
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.3.1" data-path="../c1/1.html">
|
||||
|
||||
<a href="../c1/1.html">
|
||||
|
||||
|
||||
quick start
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3.2" data-path="../c1/2.html">
|
||||
|
||||
<a href="../c1/2.html">
|
||||
|
||||
|
||||
example
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
|
||||
part 2
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.4.1" data-path="1.html">
|
||||
|
||||
<a href="1.html">
|
||||
|
||||
|
||||
bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="2.html">
|
||||
|
||||
<a href="2.html">
|
||||
|
||||
|
||||
terminal
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="3.html">
|
||||
|
||||
<a href="3.html">
|
||||
|
||||
|
||||
shell
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter active" data-level="1.4.4" data-path="4.html">
|
||||
|
||||
<a href="4.html">
|
||||
|
||||
|
||||
rust
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="../c3/">
|
||||
|
||||
<a href="../c3/">
|
||||
|
||||
|
||||
part 3
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="../c3/1.html">
|
||||
|
||||
<a href="../c3/1.html">
|
||||
|
||||
|
||||
hello world
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="../c3/2.html">
|
||||
|
||||
<a href="../c3/2.html">
|
||||
|
||||
|
||||
seahorse
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="../c3/3.html">
|
||||
|
||||
<a href="../c3/3.html">
|
||||
|
||||
|
||||
reqwest
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="../c4/">
|
||||
|
||||
<a href="../c4/">
|
||||
|
||||
|
||||
part 4
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="../c4/0.html">
|
||||
|
||||
<a href="../c4/0.html">
|
||||
|
||||
|
||||
ai
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="../c4/1.html">
|
||||
|
||||
<a href="../c4/1.html">
|
||||
|
||||
|
||||
config
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="../c4/2.html">
|
||||
|
||||
<a href="../c4/2.html">
|
||||
|
||||
|
||||
mention
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="../c4/3.html">
|
||||
|
||||
<a href="../c4/3.html">
|
||||
|
||||
|
||||
base64
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="../c5/">
|
||||
|
||||
<a href="../c5/">
|
||||
|
||||
|
||||
part 5
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="../c5/1.html">
|
||||
|
||||
<a href="../c5/1.html">
|
||||
|
||||
|
||||
notify
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="../c5/2.html">
|
||||
|
||||
<a href="../c5/2.html">
|
||||
|
||||
|
||||
timeline
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="../c5/3.html">
|
||||
|
||||
<a href="../c5/3.html">
|
||||
|
||||
|
||||
refresh
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="../end/">
|
||||
|
||||
<a href="../end/">
|
||||
|
||||
|
||||
end
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="book-body">
|
||||
|
||||
<div class="body-inner">
|
||||
|
||||
|
||||
|
||||
<div class="book-header" role="navigation">
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href=".." >rust</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page-wrapper" tabindex="-1" role="main">
|
||||
<div class="page-inner">
|
||||
|
||||
<div id="book-search-results">
|
||||
<div class="search-noresults">
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h3 id="rust">rust</h3>
|
||||
<p>次にプログラミング言語の<code>rust</code>をインストールします。</p>
|
||||
<pre><code class="lang-sh">brew install rust
|
||||
</code></pre>
|
||||
<p>rustは<code>cargo</code>というパッケージ・マネージャーを通して動作します。</p>
|
||||
<p>バージョン(version)を調べるには<code>cargo</code>を利用します。</p>
|
||||
<pre><code class="lang-sh">$ cargo version
|
||||
cargo 1.71.0
|
||||
</code></pre>
|
||||
<p>rustは、様々なプログラミング言語の中で非常に難易度が高い言語と言われています。</p>
|
||||
<p>特徴としては、一度構築すると安定して動作するけど、動かすまでに時間がかかるというイメージです。</p>
|
||||
<p>また、新しい実装を追加するのも他の言語と比べ時間がかかるかもしれません。</p>
|
||||
<h4 id="lang">lang</h4>
|
||||
<p>プログラミング言語は、<code>lang</code>と略されることがあります。</p>
|
||||
<p>例えば、<code>go</code>というプログラム言語があります。</p>
|
||||
<p>しかし、goという単語には色々な意味があります。そのため<code>golang</code>, <code>go-lang</code>と呼ばれることがあります。</p>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<div class="has-results">
|
||||
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
|
||||
</div>
|
||||
<div class="no-results">
|
||||
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="3.html" class="navigation navigation-prev " aria-label="Previous page: shell">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="../c3/" class="navigation navigation-next " aria-label="Next page: part 3">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"rust","level":"1.4.4","depth":2,"next":{"title":"part 3","level":"1.5","depth":1,"path":"c3/README.md","ref":"c3/README.md","articles":[{"title":"hello world","level":"1.5.1","depth":2,"path":"c3/1.md","ref":"c3/1.md","articles":[]},{"title":"seahorse","level":"1.5.2","depth":2,"path":"c3/2.md","ref":"c3/2.md","articles":[]},{"title":"reqwest","level":"1.5.3","depth":2,"path":"c3/3.md","ref":"c3/3.md","articles":[]}]},"previous":{"title":"shell","level":"1.4.3","depth":2,"path":"c2/3.md","ref":"c2/3.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/4.md","mtime":"2023-07-24T10:57:42.189Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-09-16T08:55:27.618Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook.js"></script>
|
||||
<script src="../gitbook/theme.js"></script>
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -0,0 +1,570 @@
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="" >
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
|
||||
<title>part 2 · hello world! bluesky</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="description" content="">
|
||||
<meta name="generator" content="@gitbook-ng/gitbook 3.3.6">
|
||||
<meta name="author" content="syui">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/style.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-codeblock-filename/block.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta name="HandheldFriendly" content="true"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
|
||||
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
|
||||
|
||||
|
||||
<link rel="next" href="1.html" />
|
||||
|
||||
|
||||
<link rel="prev" href="../c1/2.html" />
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="book">
|
||||
<div class="book-summary">
|
||||
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search" />
|
||||
</div>
|
||||
|
||||
|
||||
<nav role="navigation">
|
||||
|
||||
|
||||
|
||||
<ul class="summary">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.1" data-path="../">
|
||||
|
||||
<a href="../">
|
||||
|
||||
|
||||
hello world! bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.2" data-path="../card/">
|
||||
|
||||
<a href="../card/">
|
||||
|
||||
|
||||
card
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3" data-path="../c1/">
|
||||
|
||||
<a href="../c1/">
|
||||
|
||||
|
||||
part 1
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.3.1" data-path="../c1/1.html">
|
||||
|
||||
<a href="../c1/1.html">
|
||||
|
||||
|
||||
quick start
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.3.2" data-path="../c1/2.html">
|
||||
|
||||
<a href="../c1/2.html">
|
||||
|
||||
|
||||
example
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter active" data-level="1.4" data-path="./">
|
||||
|
||||
<a href="./">
|
||||
|
||||
|
||||
part 2
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.4.1" data-path="1.html">
|
||||
|
||||
<a href="1.html">
|
||||
|
||||
|
||||
bluesky
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.2" data-path="2.html">
|
||||
|
||||
<a href="2.html">
|
||||
|
||||
|
||||
terminal
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.3" data-path="3.html">
|
||||
|
||||
<a href="3.html">
|
||||
|
||||
|
||||
shell
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.4.4" data-path="4.html">
|
||||
|
||||
<a href="4.html">
|
||||
|
||||
|
||||
rust
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5" data-path="../c3/">
|
||||
|
||||
<a href="../c3/">
|
||||
|
||||
|
||||
part 3
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.5.1" data-path="../c3/1.html">
|
||||
|
||||
<a href="../c3/1.html">
|
||||
|
||||
|
||||
hello world
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.2" data-path="../c3/2.html">
|
||||
|
||||
<a href="../c3/2.html">
|
||||
|
||||
|
||||
seahorse
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.5.3" data-path="../c3/3.html">
|
||||
|
||||
<a href="../c3/3.html">
|
||||
|
||||
|
||||
reqwest
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6" data-path="../c4/">
|
||||
|
||||
<a href="../c4/">
|
||||
|
||||
|
||||
part 4
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.6.1" data-path="../c4/0.html">
|
||||
|
||||
<a href="../c4/0.html">
|
||||
|
||||
|
||||
ai
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.2" data-path="../c4/1.html">
|
||||
|
||||
<a href="../c4/1.html">
|
||||
|
||||
|
||||
config
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.3" data-path="../c4/2.html">
|
||||
|
||||
<a href="../c4/2.html">
|
||||
|
||||
|
||||
mention
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.6.4" data-path="../c4/3.html">
|
||||
|
||||
<a href="../c4/3.html">
|
||||
|
||||
|
||||
base64
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7" data-path="../c5/">
|
||||
|
||||
<a href="../c5/">
|
||||
|
||||
|
||||
part 5
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<ul class="articles">
|
||||
|
||||
|
||||
<li class="chapter " data-level="1.7.1" data-path="../c5/1.html">
|
||||
|
||||
<a href="../c5/1.html">
|
||||
|
||||
|
||||
notify
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.2" data-path="../c5/2.html">
|
||||
|
||||
<a href="../c5/2.html">
|
||||
|
||||
|
||||
timeline
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.7.3" data-path="../c5/3.html">
|
||||
|
||||
<a href="../c5/3.html">
|
||||
|
||||
|
||||
refresh
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="chapter " data-level="1.8" data-path="../end/">
|
||||
|
||||
<a href="../end/">
|
||||
|
||||
|
||||
end
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="book-body">
|
||||
|
||||
<div class="body-inner">
|
||||
|
||||
|
||||
|
||||
<div class="book-header" role="navigation">
|
||||
|
||||
|
||||
<!-- Title -->
|
||||
<h1>
|
||||
<i class="fa fa-circle-o-notch fa-spin"></i>
|
||||
<a href=".." >part 2</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="page-wrapper" tabindex="-1" role="main">
|
||||
<div class="page-inner">
|
||||
|
||||
<div id="book-search-results">
|
||||
<div class="search-noresults">
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h2 id="part-2">part 2</h2>
|
||||
<p>この章では、よく使う単語の説明と環境の説明を行います。</p>
|
||||
<p>主に、osによって動作環境が異なるため、それに向けた解説です。</p>
|
||||
<p>本書で使用するパッケージのインストールなどをまとめて紹介します。</p>
|
||||
<p>よくわからない方はこの章をご参照ください。</p>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<div class="has-results">
|
||||
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
|
||||
</div>
|
||||
<div class="no-results">
|
||||
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a href="../c1/2.html" class="navigation navigation-prev " aria-label="Previous page: example">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="1.html" class="navigation navigation-next " aria-label="Next page: bluesky">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"part 2","level":"1.4","depth":1,"next":{"title":"bluesky","level":"1.4.1","depth":2,"path":"c2/1.md","ref":"c2/1.md","articles":[]},"previous":{"title":"example","level":"1.3.2","depth":2,"path":"c1/2.md","ref":"c1/2.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","codeblock-filename","mermaid-gb3","diff"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"codeblock-filename":{},"mermaid-gb3":{},"diff":{"type":"markdown","method":"diffChars","options":{}},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"syui","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"hello world! bluesky","gitbook":"*","description":"This is a bluesky ai-card example, and first rust"},"file":{"path":"c2/README.md","mtime":"2023-07-21T07:15:45.218Z","type":"markdown"},"gitbook":{"version":"3.3.6","time":"2023-09-16T08:55:27.618Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook.js"></script>
|
||||
<script src="../gitbook/theme.js"></script>
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
|
||||
|
||||
|
||||
|
||||
<script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user