From cfe9f6d5d3105b7149767f7de21c8f41f701973d Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Sun, 21 Feb 2021 15:18:50 +0100 Subject: [PATCH] help: remove http doc server options (#8839) --- cmd/tools/vdoc/utils.v | 13 ------------- cmd/v/help/doc.txt | 3 --- 2 files changed, 16 deletions(-) diff --git a/cmd/tools/vdoc/utils.v b/cmd/tools/vdoc/utils.v index 4f0f488bc9..00eb89d488 100644 --- a/cmd/tools/vdoc/utils.v +++ b/cmd/tools/vdoc/utils.v @@ -8,19 +8,6 @@ fn slug(title string) string { 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 { return str.replace_each(['"', '\\"', '\r\n', '\\n', '\n', '\\n', '\t', '\\t']) } diff --git a/cmd/v/help/doc.txt b/cmd/v/help/doc.txt index 727e8e4b3e..6be2237262 100644 --- a/cmd/v/help/doc.txt +++ b/cmd/v/help/doc.txt @@ -27,9 +27,6 @@ Options: For HTML mode: -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: -l Show the locations of the generated signatures.