Skip to content

Commit

Permalink
help: remove http doc server options (#8839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Neubert committed Feb 21, 2021
1 parent 95e5f68 commit cfe9f6d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions cmd/tools/vdoc/utils.v
Expand Up @@ -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'])
}
Expand Down
3 changes: 0 additions & 3 deletions cmd/v/help/doc.txt
Expand Up @@ -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.

2 comments on commit cfe9f6d

@changrui
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why put this function open_url() to net.http or os module?

@StunxFS
Copy link
Contributor

@StunxFS StunxFS commented on cfe9f6d Feb 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@changrui this function is unnecessary, it is a simple call to a system command

Please sign in to comment.