Added file and inline link anchors.
* Auto-link for documents. If there is an `org` directive in the first doc block of the file then it is used as the file link definition. If there is no such `org` directive then on is created automatically. This resolves issue #0008. There is a new LinkAnchor type for these links: `LinkType.FileLink` * Multiple `org` directives per DocBlock are now allowed. There is a new LinkAnchor link type for these link: `LinkType.InlineLink`. * Refactored `LinkType.OrgLink` to be `LinkType.BlockLink`. * Tweaked CSS * Refactored `LiterateMarkdownGenerator.emit(DocBlock)` for simplicity.
This commit is contained in:
@ -15,6 +15,12 @@ h1, h2, h3, h4, h5, h6 { margin: 0 0 15px 0; }
|
||||
|
||||
h1 { margin-top: 40px; }
|
||||
|
||||
hr {
|
||||
background-color: black;
|
||||
color: black;
|
||||
border: none;
|
||||
height: 1px; }
|
||||
|
||||
dt { font-weight: bold; }
|
||||
|
||||
ul {
|
||||
@ -36,17 +42,17 @@ td.docs, th.docs {
|
||||
vertical-align: top;
|
||||
text-align: left; }
|
||||
|
||||
.docs pre {
|
||||
background: #f8f8ff;
|
||||
border: 1px solid #dedede;
|
||||
margin: 15px 0 15px;
|
||||
padding-left: 15px; }
|
||||
|
||||
.docs tt, .docs code {
|
||||
.docs tt, .docs code, .docs pre {
|
||||
background: #f8f8ff;
|
||||
border: 1px solid #dedede;
|
||||
padding: 0 0.2em; }
|
||||
|
||||
.docs pre {
|
||||
margin: 15px 0 15px;
|
||||
padding-left: 15px; }
|
||||
|
||||
.docs pre > code { border: none; }
|
||||
|
||||
.docs table {
|
||||
border: thin solid #dedede;
|
||||
margin-left: 60px; }
|
||||
|
Reference in New Issue
Block a user