Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asciidoc man page rework #699

Merged
merged 14 commits into from
Jul 4, 2016

Conversation

anonymous-contributor
Copy link

Just like git/btrfs-progs and a lot of other projects which uses asciidoc as documentation language, change the current hand written roff man page to asciidoc documenation.

Asciidoc has several advantages:

  • Multiple output format
    Not only man pages, but also html/pdf
  • More human readable
\*(Me is a lightweight and secure socks5 proxy. It is a port of the original
shadowsocks created by clowwindy. \*(Me is written in pure C and takes advantage
of \fBlibev\fP to achieve both high performance and low resource consumption.
.PP

vs

*Shadowsocks-libev* is a lightweight and secure socks5 proxy.
It is a port of the original shadowsocks created by clowwindy.
*Shadowsocks-libev* is written in pure C and takes advantage of *libev*
to achieve both high performance and low resource consumption.
  • Easier to edit for complicated function, like tables

There are also some minor changes introduced by this patchset:

  • Remove 'AUTHOR' section
    It's never a good idea to update that section just because one updated the man page and want to leave his/her name to the project.
    Also, it's not a good idea to expose developers' mail address, for such anti-censorship project.
  • Change 'SYNOPSIS' format
    The original 2/3 columns layout is very nice, although it's nice only in default terminal size(80x24). If we are going to support other output like html or pdf, we shouldn't rely on such manual layout.

Adam Anonymous and others added 14 commits July 1, 2016 10:26
And allow ss-tunnel to use the newly introduced parser.

Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp>
Now jconf supports "mode" setting, allowed values are "tcp_only",
"tcp_and_udp" and "udp_only".

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
As the coding style differs from kernel and other projects, so such
project vimrc should be helpful.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Use asciidoc for new documentation framework, which could not only
output man pages, but also htmls.

And asciidoc documentation is much more human-readable than roff man
pages.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
The port to asciidoc has some format change compared to old one.

The most obvious one is the options listed in SYNOPSIS.
Now the options list is not split into 2/3 columns, or we must use
asciidoc tables and introduce table frames.

Other small change includes the removal of AUTHOR sector, as it's not
an expendable method to update AUTHOR sector every time it gets updated.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Also modify gitignore, since it use too generic rules to ignore such
documentation.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Welcome to the new age of asciidoc.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
Now user can get a more clear view of config file and command line
options.

Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
@madeye madeye merged commit f793d26 into shadowsocks:master Jul 4, 2016
@madeye
Copy link

madeye commented Jul 4, 2016

Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants