Copyright 2019 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Command css appends CSS styles to content/static/stylesheet.css. It reads from the CSS file at https://github.com/sindresorhus/github-markdown-css/blob/gh-pages/github-markdown.css and removes all styles that do not belong to a .markdown-body <tag>. The .markdown-body class is then replaced with .Overview-readmeContent, for use in the discovery codebase. The remaining properties are written to content/static/css/stylesheet.css.
replaceHeaderTag finds any header tags in a line of text and increases the header level by 2. replaceHeader tag returns the replaced string if a header tag is found and returns an empty string if not
e.g: "padding: 6px 13px;" => "padding: 0.375rem 0.8125rem;" padding: [valueStartIdx][numStartIdx]25[numEndIdx]px[valueEndIdx] 10em; The value here is the full string "25px" and num is just "25".
If there are more matches for "px", add up until the start of the next match.
+= [:[+1][0]]
}
}
return
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.