[ 
https://issues.apache.org/jira/browse/MESOS-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14110000#comment-14110000
 ] 

Jessica Hartog commented on MESOS-1647:
---------------------------------------

Looks like this is as a result of the way markdown is converted to HTML. There 
are several kinds of changes we could make. (Note when determining what the 
markdown might look like, I used [this tool| 
http://jbt.github.io/markdown-editor/]). 

Other options (including the combinations of what's below could also be used. 
But all of these should make the generated HTML easier to read. I'm open to 
feedback/suggestions and willing to fix this.

h4. Option A: Convert the current code blocks into a table with code markings 
to identify an option. 

For example:
{noformat}
| Option             | Description                             |
| ------             | ---------------                         |
| `--ip=VALUE`       | IP address to listen on                 |
| `--log_dir=VALUE`  | Location to put log files (no default, nothing is 
written to disk unless specified; does not affect logging to stderr)    |
{noformat}

Which should render something like:
|| Option || Description ||
| {noformat}--ip=VALUE{noformat} | IP address to listen on |
| {noformat}--log_dir=VALUE{noformat} | Location to put log files (no default, 
nothing is written to disk unless specified; does not affect logging to stderr) 
|

*Pros:* Flags and descriptions are aligned in HTML
*Cons:* Since GFM doesn't support multi-line table entries in the source, the 
.md file is forced to have long lines that cannot be broken up, .md file 
requires more hand-tuning to keep aligned and readable, may still be ugly if 
the option is "too long"

h4. Option B: Convert the current code blocks into a bulleted list. 

For example:
{noformat}
* `--ip=VALUE`                   IP address to listen on
* `--log_dir=VALUE`              Location to put log files (no default, nothing 
is written to disk 
unless specified; does not affect logging to stderr)
{noformat}

Which should render something like:
* {{--ip=VALUE}} IP address to listen on
* {{--log_dir=VALUE}} Location to put log files (no default, nothing is written 
to disk unless specified; does not affect logging to stderr)

*Pros:* .md file can be aligned, compact space
*Cons:* Difficult to read when there are many entries, text in HTML is not 
aligned entirely (some control granted)

h4. Option C: Convert the current code blocks into blocks of quoted and 
unquoted text. 

For example:
{noformat}
`--ip=VALUE` 
> IP address to listen on

`--log_dir=VALUE` 
> Location to put log files (no default, nothing is written to disk 
> unless specified; does not affect logging to stderr)
{noformat}

Which should render something like:
{{--ip=VALUE}}
{quote} IP address to listen on {quote}
{{--log_dir=VALUE}}
{quote} Location to put log files (no default, nothing is written to disk 
unless specified; does not affect logging to stderr) {quote}

*Pros:* .md file is broken up to visually differentiate between option and 
description
*Cons:* Not space efficient in the rendered HTML, requires additional line 
break between options in .md

h4. Option D: Convert the current code blocks into headings and descriptions:

For example:
{noformat}
###### --ip=VALUE
IP address to listen on
###### --log_dir=VALUE
Location to put log files (no default, nothing is written to disk unless 
specified; 
does not affect logging to stderr)
{noformat}

Which should render something like:
h6. --ip=VALUE
IP address to listen on
h6. --log_dir=VALUE
Location to put log files (no default, nothing is written to disk unless 
specified; 
does not affect logging to stderr)

*Pros:* .md file is broken up to visually differentiate between option and 
description
*Cons:* Text is not cleanly aligned in the HTML unless it is also cleanly 
aligned in the .md

> Fix text formatting in web documentation
> ----------------------------------------
>
>                 Key: MESOS-1647
>                 URL: https://issues.apache.org/jira/browse/MESOS-1647
>             Project: Mesos
>          Issue Type: Bug
>          Components: documentation, project website
>            Reporter: Ian Downes
>
> The flags documentation looks terrible in my Chrome and Safari.
> http://mesos.apache.org/documentation/latest/configuration/



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to