Skip to content

cpplearner/fundamentals-ts

This branch is 18 commits behind cplusplus/fundamentals-ts:v2.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6560f53 · Jul 1, 2016
Jun 7, 2015
Mar 2, 2014
May 10, 2015
Mar 1, 2014
Jul 6, 2014
Oct 27, 2015
Jul 1, 2016
May 22, 2015
May 10, 2015
Jul 1, 2016
Mar 18, 2016
Jul 1, 2016
May 20, 2014
Jul 1, 2016
May 10, 2015
Oct 27, 2015
Oct 27, 2015
Jul 1, 2016
Jul 1, 2016
May 30, 2015
Oct 27, 2015
Jul 1, 2016
May 11, 2015
Oct 27, 2015
Mar 8, 2016

Repository files navigation

fundamentals-ts

The draft C++ Library Fundamentals Technical Specification

Visit the Polymer-based rendered version or the standalone version.

This TS is written using a set of custom HTML elements based on the Polymer framework.

Style guide

This guide is intended to produce results compatible with the main C++ standard, which is written in LaTeX.

Look for applicable <cxx-*> elements, and write semantic markup according to http://developers.whatwg.org/.

Generally use <code> rather than <samp>, <kbd>, <tt> or other monospacing elements. <samp> could be useful for sample compiler error messages. Don't use <kbd> for code a user might enter: that's just <code>.

Use <em> for emphasis and <i> for text in another "voice", like comments and technical terms. <dfn> is good for the defining instance of a term, but not for subsequent uses. I may add a <cxx-term> element to call out uses of technical terms specifically, which will enable automatic cross-linking and indexing.

Use <var> for variables. There's tension between using it for all variables, including function parameters, and only calling out meta-variables used in documentation. I'm leaning toward only meta-variables, since marking up parameters requires a huge number of tags, which make it harder to read the source, and there's not much reason to italicize normal variables. Most meta-variables will end up marked up as <code><var>meta-variable</var></code>.

Very little text is bold, either with <strong> or <b>.

Any repeated markup structure should be abstracted out into a custom element in the https://github.com/cplusplus/html-doc-framework project.

Namespace formatting

Namespace contents are indented by 2 spaces, with one blank line between the namespace open and the first line of the contents. Multiple namespaces can be opened at the same indentation level, like:

namespace std {
namespace experimental {

  class contents{};

} // namespace experimental
} // namespace std

Namespaces are only shown in header synopses, not around class or function definitions.

About

The draft C++ Library Fundamentals Technical Specification

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%