Skip to content

Commit 5164ddf

Browse files
authored
Merge pull request #25 from 00JCIV00/v0.8.0
v0.8.0-beta
2 parents 6d89f19 + 16e1dbe commit 5164ddf

File tree

210 files changed

+99712
-81423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+99712
-81423
lines changed

README.md

+80-229
Large diffs are not rendered by default.

build.zig

+18-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const std = @import("std");
22

33
pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
5-
//const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSafe });
65
const optimize = b.standardOptimizeOption(.{});
76
b.exe_dir = "./bin";
87

@@ -32,9 +31,11 @@ pub fn build(b: *std.Build) void {
3231

3332
// Docs
3433
const cova_docs = cova_tests;
35-
cova_docs.emit_docs = .emit;
36-
const build_docs = b.addRunArtifact(cova_docs);
37-
build_docs.has_side_effects = true;
34+
const build_docs = b.addInstallDirectory(.{
35+
.source_dir = cova_docs.getEmittedDocs(),
36+
.install_dir = .prefix,
37+
.install_subdir = "../docs",
38+
});
3839
const build_docs_step = b.step("docs", "Build the cova library docs");
3940
build_docs_step.dependOn(&build_docs.step);
4041

@@ -46,7 +47,19 @@ pub fn build(b: *std.Build) void {
4647
.optimize = optimize,
4748
});
4849
cova_demo.addModule("cova", cova_mod);
49-
const build_cova_demo = b.addInstallArtifact(cova_demo);
50+
const build_cova_demo = b.addInstallArtifact(cova_demo, .{});
5051
const build_cova_demo_step = b.step("demo", "Build the 'covademo' example (default: Debug)");
5152
build_cova_demo_step.dependOn(&build_cova_demo.step);
53+
54+
// Basic App Exe
55+
const basic_app = b.addExecutable(.{
56+
.name = "basic-app",
57+
.root_source_file = .{ .path = "examples/basic_app.zig" },
58+
.target = target,
59+
.optimize = optimize,
60+
});
61+
basic_app.addModule("cova", cova_mod);
62+
const build_basic_app = b.addInstallArtifact(basic_app, .{});
63+
const build_basic_app_step = b.step("basic-app", "Build the 'basic-app' example (default: Debug)");
64+
build_basic_app_step.dependOn(&build_basic_app.step);
5265
}

docs/commonmark.js

+15
Original file line numberDiff line numberDiff line change
@@ -7831,6 +7831,16 @@
78317831
} else {
78327832
node._literal = contents;
78337833
}
7834+
const doc = this.options.autoDoc;
7835+
if (doc) {
7836+
const decl_hash = doc.detectDeclPath(contents);
7837+
if (decl_hash) {
7838+
var l = new Node("link");
7839+
l.destination = decl_hash;
7840+
l.appendChild(node);
7841+
node = l;
7842+
}
7843+
}
78347844
block.appendChild(node);
78357845
return true;
78367846
}
@@ -9702,6 +9712,7 @@
97029712

97039713
this.buffer = "";
97049714
this.lastOut = "\n";
9715+
this.heading_count = 0;
97059716

97069717
while ((event = walker.next())) {
97079718
type = event.node.type;
@@ -9883,6 +9894,10 @@
98839894
var tagname = "h" + node.level,
98849895
attrs = this.attrs(node);
98859896
if (entering) {
9897+
if (node.level != 1) {
9898+
attrs.push(["id", ":" + this.heading_count]);
9899+
this.heading_count += 1;
9900+
}
98869901
this.cr();
98879902
this.tag(tagname, attrs);
98889903
} else {

docs/data-astNodes.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-calls.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-comptimeExprs.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-decls.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-exprs.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-files.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-guideSections.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-modules.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-rootMod.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
var rootMod =0;

docs/data-typeKinds.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data-types.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/data.js

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)