-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move content to zine, add github page
- Loading branch information
Showing
46 changed files
with
1,333 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# List of SHENNANIGAN | ||
# 1. IndentAccessModifiers: true causes useless indentation in structs, but | ||
# false makes access modifiers like public be on same line as member fields. | ||
# 2. Unintuitive setup for cases like `enum Color { red, green, blue };` via | ||
# config BasedOnStyle: WebKit instead of LLVM | ||
# 3. default ColumnLimit: 80 instead of more sane 100 or 120 | ||
|
||
# clang-format < 16 | ||
# AlignTrailingComments: true/false | ||
# clang-format >= 16 | ||
# AlignTrailingComments: | ||
# Kind: Always | ||
# OverEmptyLines: 0 | ||
|
||
# C and C++ | ||
--- | ||
AlignEscapedNewlines: Left | ||
AlignTrailingComments: true | ||
BasedOnStyle: LLVM | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: Never | ||
AfterFunction: false | ||
AfterEnum: false | ||
AfterNamespace: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
BeforeLambdaBody: false | ||
BreakBeforeBraces: Custom | ||
BreakBeforeInheritanceComma: true | ||
BreakConstructorInitializers: BeforeComma | ||
ColumnLimit: 120 | ||
IndentAccessModifiers: false | ||
IndentCaseLabels: true | ||
IndentPPDirectives: None | ||
IndentRequiresClause: false | ||
IndentWidth: 2 | ||
InsertNewlineAtEOF: true | ||
# clang clang-format 19 | ||
# KeepEmptyLines: | ||
# AtEndOfFile: true | ||
LineEnding: LF | ||
NamespaceIndentation: None | ||
QualifierAlignment: Right | ||
ReflowComments: false | ||
RemoveSemicolon: true | ||
RequiresClausePosition: WithFollowing | ||
RequiresExpressionIndentation: OuterScope | ||
SpaceAfterTemplateKeyword: false | ||
TabWidth: 2 | ||
UseTab: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
deploy: | ||
timeout-minutes: 20 | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Change if you need git info | ||
|
||
- name: Setup Zig | ||
uses: mlugg/setup-zig@v1 | ||
with: | ||
version: 0.13.0 | ||
|
||
- name: Build | ||
run: zig build --summary new | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/master' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./zig-out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Usage | ||
|
||
../zig-linux-x86_64-0.13.0/zig build serve | ||
|
||
### Markdown languages | ||
|
||
- https://github.com/neurocyte/flow-syntax | ||
- src/file_types.zig | ||
|
||
### SHENNANIGANS when working with zine | ||
|
||
``` | ||
[scripty] sections must be top level elements or be embedded in headings | ||
content/articles/shennanigans_in_c.smd:28:3: | ||
- []($section.id("pointer_semantics")) | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
``` | ||
So one has to workaround this via | ||
``` | ||
<pre> | ||
<code class="c" | ||
:html="$page.asset('./articles/shennanigans_in_c/ex1.c').syntaxHighLight('c')" | ||
></code> | ||
</pre> | ||
``` | ||
or including sections into the item. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.