D Language Website Documentation

repository·master·Indexed 18 days ago

https://github.com/dlang/dlang.org

Source code and content for the official D Language website, including language specifications, official documentation, the Programming in D book by Ali Cehreli, and language changelogs.

Tokens
782
Snippets
3
Records
6
Agent score
64%

What's inside dlang.org

  1. Add a new changelog entry to the pending changelog

    master

    To document new features or changes for the D language, add entries to the pending changelog. These entries are automatically copied to dlang.org and cleared when the master branch is merged into stable before a new release.

    Entry Format

    Entries should follow a structure similar to this:

    1. A title (e.g., My fancy new feature X). Note: The title must not contain links, as the title itself is rendered as a link.
    2. A long description of the feature.
    3. Code snippets (e.g., D code using assert) to demonstrate the change.
    My fancy new feature X
    
    A long description of the new feature.
    -------
    import std.range;
    import std.algorithm.comparison;
    
    assert([1, 2, 3, 4, 5].padLeft(0, 7).equal([0, 0, 1, 2, 3, 4, 5]));
    
    assert("Hello World!".padRight('!', 15).equal("Hello World!!!!"));
    -------
  2. Locate code samples for the Programming in D book

    master

    The code samples used throughout the book "Programming in D" (available at http://ddili.org/) are stored in this directory. Each sample is a standalone .d file named using a specific convention to map it back to its original chapter and sequence.

    Naming Convention: chapterName.N.d

    • chapterName: The name of the chapter file (without the .html extension). For example, hello_world corresponds to hello_world.html.
    • N: The sequential order of the program within that chapter.

    Example: hello_world.1.d is the first code sample extracted from the hello_world.html chapter file.

    Note on Translations: In some cases, chapter names containing the Turkish word cozum (meaning "solution") have been translated to solution in the file names. For example, unit_testing.solution.2.d is the second program extracted from unit_testing.cozum.html.