mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
help: remove http doc server options (#8839)
This commit is contained in:
parent
95e5f68b64
commit
cfe9f6d5d3
@ -8,19 +8,6 @@ fn slug(title string) string {
|
|||||||
return title.replace(' ', '-')
|
return title.replace(' ', '-')
|
||||||
}
|
}
|
||||||
|
|
||||||
[inline]
|
|
||||||
fn open_url(url string) {
|
|
||||||
$if windows {
|
|
||||||
os.system('start $url')
|
|
||||||
}
|
|
||||||
$if macos {
|
|
||||||
os.system('open $url')
|
|
||||||
}
|
|
||||||
$if linux {
|
|
||||||
os.system('xdg-open $url')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn escape(str string) string {
|
fn escape(str string) string {
|
||||||
return str.replace_each(['"', '\\"', '\r\n', '\\n', '\n', '\\n', '\t', '\\t'])
|
return str.replace_each(['"', '\\"', '\r\n', '\\n', '\n', '\\n', '\t', '\\t'])
|
||||||
}
|
}
|
||||||
|
@ -27,9 +27,6 @@ Options:
|
|||||||
|
|
||||||
For HTML mode:
|
For HTML mode:
|
||||||
-inline-assets Embeds the contents of the CSS and JS assets into the webpage directly.
|
-inline-assets Embeds the contents of the CSS and JS assets into the webpage directly.
|
||||||
-open Launches the browser when the server docs has started.
|
|
||||||
-p Specifies the port to be used for the docs server.
|
|
||||||
-s Serve HTML-generated docs via HTTP.
|
|
||||||
|
|
||||||
For plain text mode:
|
For plain text mode:
|
||||||
-l Show the locations of the generated signatures.
|
-l Show the locations of the generated signatures.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user