Commit a21bcb5
Merge 1.0 documentation into
* Initial files to test MkDocs with Material
* Update checkout version
* Trying checkout with no version
* Back to v3
* Try renaming to docs
* Test push to renamed docs branch
* Try moving mkdocs.yml to root to unblock CI
* Further cleanup to get things in the right directories
* Finish moving from `/docs/docs` to `/docs`
Added local hosting instructions in the YAML file
This renders beautifully locally, but for some reason it doesn't render properly on GitHub Pages yet. One possible reason is the `pages-build-deployment` workflow that GitHub Pages created on my initial attempt to use Pages (before trying MkDocs) is still running (and I can't figure out how to get rid of it) and it appears to be interfering with the `docs` workflow I created for MkDocs
If someone has ideas on how to debug this, please open an issue or email me - thx!
* Add "Cppfront reference," and start writing "Cpp2 reference"
* Merged documentation from blog posts, and unary operators
`_` wildcard, including in `inspect` and explicit discard
Named `break` and `continue`
`type` declaration syntax
Explicit `this`
`operator=`
Chained comparisons
Metafunctions overview
`@enum` and `@flag_enum`
`@union`
* Integrate links to wiki design notes
* Add more sections
Type qualifiers
Binary operators
`is`
and update chained comparisons
* Add `as` and `inspect`
* Document declarations, improve `inspect` discussion
* Fix a few typos
* Add Hello-world xref
* Update mkdocs.yml
* Improve mixed files examples and flow
* Overview editorial improvements
* Minor cleanup
* docs: fix some typos and confusing wording (#976)
* docs: fix some typos and confusing wording
* restore std::ssize
* Fix table of content display -> rhs of page
* Add section navigation
Reorganize sources
Fix long code lines to avoid horizontal scroll bars
* Organize the welcome info into three pages
And try to use extra CSS to tweak the navigation pane
* Disable regression tests on this branch
* Add more types and `operator=` material
And do further cleanup on the docs structure
* Add keywords, objects, and heap allocation
* Add `main`
* Reviewing cppfront docs (#982)
* Reviewing cppfront docs
* integrations.md
* expressions and objects
* Fix "lines 8, 9, and 15" wording
* Mention UFCS
* Function outputs and explicit discard
* Add definite initialization section
And:
- add placeholder for contracts
- add some is/as side-by-side examples
- add parameter passing styles
* Update CTAD description in hello-world.md (#984)
Signed-off-by: Neil Henderson <[email protected]>
* Embiggen text font, add `move` and `out` arguments
And code block cleanup:
- highlight key lines in all code blocks
- remove redundant "Example:" in code block titles
- add a chained comparisons example
* Fix small typo in common.md (#985)
Signed-off-by: Neil Henderson <[email protected]>
* Changes to expressions.md (#986)
* Update expressions.md
Signed-off-by: Neil Henderson <[email protected]>
* Minor tweak to not lose "dynamic" types
---------
Signed-off-by: Neil Henderson <[email protected]>
Co-authored-by: Herb Sutter <[email protected]>
* Another round of docs updates (#983)
* types
* metafunctions
* Taking a pass over the updates, and adding that `that` must be `in` or `move`
* Remove TODO comment for now
Not sure of its meaning, we can add again later
---------
Co-authored-by: Herb Sutter <[email protected]>
* Add syntax highlighting for inline code blocks using `#!cpp` shebangs
Note: I deliberately did not add shebangs for:
- `inline code` that wouldn't benefit from them (e.g., had nothing significant to highlight) so as to keep the Markdown more readable
- `inline code` that I didn't want to highlight, mainly Cpp2 code that used Cpp1 reserved keywords in a non-reserved way (mainly metafunctions like @enum and @union)
* Move function calls to expressions
* Add capture section
And add Cpp1 lowering notes for parameter passing
* Add Mermaid build diagram
* Add TODO for `member = _;`
* Add interpolation formatting, and other minor cleanup
* Expand comparisons section
Also add short anchor names to all subsections that don't already have them
And make anchor names all lowercase-like-this
* Update declarations.md (#988)
Signed-off-by: Neil Henderson <[email protected]>
* Follow up merge with additional examples, and update highlighted linenos
* Update Capture sections in expressions.md (#987)
* Update expressions.md
Signed-off-by: Neil Henderson <[email protected]>
* Update highlighted linenos
And a couple of other fixes, including that I meant to write "ish" not "sh" (fixing my own typo!)
---------
Signed-off-by: Neil Henderson <[email protected]>
Signed-off-by: Herb Sutter <[email protected]>
Co-authored-by: Herb Sutter <[email protected]>
* More docs reviews (#990)
* Add more functions material
Return values
Branches
Loops
Template parameters
* Changes to functions.md (#998)
* Update functions.md
Signed-off-by: Neil Henderson <[email protected]>
* Tweak comments for divide example
---------
Signed-off-by: Neil Henderson <[email protected]>
Co-authored-by: Herb Sutter <[email protected]>
* Fill in some TODO's
* Add requires, namespaces, using, and namespace/type/function/object aliases
* Update aliases.md (#1005)
Signed-off-by: Neil Henderson <[email protected]>
* Add generality notes: Function defaults, and function <-> block/stmt unification
* Merge previous commit
* Update functions.md (#1011)
Signed-off-by: Neil Henderson <[email protected]>
* Update declarations.md (#1010)
Signed-off-by: Neil Henderson <[email protected]>
* Complete the metafunctions section
* Update metafunctions.md (#1015)
Signed-off-by: Neil Henderson <[email protected]>
* Add contracts documentation
* Remove modules documentation stub since that's not supported yet
* Fix comment typo
---------
Signed-off-by: Neil Henderson <[email protected]>
Signed-off-by: Herb Sutter <[email protected]>
Co-authored-by: Dylam De La Torre <[email protected]>
Co-authored-by: gregmarr <[email protected]>
Co-authored-by: Neil Henderson <[email protected]>main (#1016)1 parent d59ef7c commit a21bcb5
File tree
17 files changed
+2711
-50
lines changed- .github/workflows
- docs
- cpp2
- cppfront
- stylesheets
- welcome
17 files changed
+2711
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
0 commit comments