Skip to content

Commit

Permalink
🚀 update docs from verso repository
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 24, 2024
1 parent 9553a2f commit 54c0915
Show file tree
Hide file tree
Showing 19 changed files with 202 additions and 31 deletions.
2 changes: 1 addition & 1 deletion docs/search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.desc/versoview/versoview-desc-0-.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion docs/src/versoview/config.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
<a href="#131" id="131">131</a>
<a href="#132" id="132">132</a>
<a href="#133" id="133">133</a>
<a href="#134" id="134">134</a>
<a href="#135" id="135">135</a>
<a href="#136" id="136">136</a>
<a href="#137" id="137">137</a>
<a href="#138" id="138">138</a>
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>std::{fs, path::PathBuf};

<span class="kw">use </span>embedder_traits::resources::{<span class="self">self</span>, Resource, ResourceReaderMethods};
Expand All @@ -146,6 +155,8 @@
</span><span class="kw">pub struct </span>CliArgs {
<span class="doccomment">/// URL to load initially.
</span><span class="kw">pub </span>url: <span class="prelude-ty">Option</span>&lt;url::Url&gt;,
<span class="doccomment">/// URL to load initially.
</span><span class="kw">pub </span>ipc_channel: <span class="prelude-ty">Option</span>&lt;String&gt;,
}

<span class="doccomment">/// Configuration of Verso instance.
Expand All @@ -164,6 +175,12 @@

<span class="kw">let </span><span class="kw-2">mut </span>opts = getopts::Options::new();
opts.optopt(<span class="string">""</span>, <span class="string">"url"</span>, <span class="string">"URL to load on start"</span>, <span class="string">"URL"</span>);
opts.optopt(
<span class="string">""</span>,
<span class="string">"ipc-channel"</span>,
<span class="string">"IPC channel name to communicate and control verso"</span>,
<span class="string">""</span>,
);

<span class="kw">let </span>matches: getopts::Matches = opts.parse(<span class="kw-2">&amp;</span>args[<span class="number">1</span>..])<span class="question-mark">?</span>;
<span class="kw">let </span>url = matches
Expand All @@ -180,8 +197,9 @@
<span class="prelude-val">None
</span>}
});
<span class="kw">let </span>ipc_channel = matches.opt_str(<span class="string">"ipc-channel"</span>);

<span class="prelude-val">Ok</span>(CliArgs { url })
<span class="prelude-val">Ok</span>(CliArgs { url, ipc_channel })
}

<span class="kw">impl </span>Config {
Expand Down
Loading

0 comments on commit 54c0915

Please sign in to comment.