To add a new entry to the pending changelog, create a new file in the changelog folder with a .dd extension. The file format should resemble a git commit message:
- Title: The first line is the title of the change. It cannot contain links.
- Description: After an empty line, provide a long description of the change.
- Examples: You can include code examples using
------- as a separator. - Links: Use Ddoc syntax for internal and external links:
$(REF module, function) or $(REF_ALTTEXT alt_text, module, function) for internal references.$(LINK2 path, text) for linking to local files (e.g., $(LINK2 $(ROOT_DIR)spec/module.html, this)).$(LINK2 https://url.com, text) for external resources.
My fancy title of the new feature
A long description of the new feature in `std.range`.
It can be followed by an example:
-------
import std.range : padLeft, padRight;
import std.algorithm.comparison : equal;
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!!!!"));
-------
and links to the documentation, e.g. $(REF drop, std, range) or
$(REF_ALTTEXT a custom name for the function, drop, std, range).
Links to the spec can look like this $(LINK2 $(ROOT_DIR)spec/module.html, this)
and of course you can link to other $(LINK2 https://forum.dlang.org/, external resources).