chore: use preview import paths in examples
This commit is contained in:
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#import "../src/lib.typ": schema, config
|
||||
#import "@preview/rivet:0.3.1": schema, config
|
||||
|
||||
#let example = schema.load("/gallery/example1.yaml")
|
||||
#let example = schema.load(yaml("./example1.yaml"))
|
||||
#schema.render(example, config: config.config(
|
||||
full-page: true
|
||||
))
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#import "../src/lib.typ": schema, config
|
||||
#import "@preview/rivet:0.3.1": schema, config
|
||||
|
||||
#let example = schema.load("/gallery/example2.yaml")
|
||||
#let example = schema.load(yaml("./example2.yaml"))
|
||||
#schema.render(example, config: config.blueprint(
|
||||
full-page: true,
|
||||
left-labels: true
|
||||
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#import "../src/lib.typ": schema, config
|
||||
#import "@preview/rivet:0.3.1": schema, config
|
||||
|
||||
#let example = schema.load("/gallery/example1.yaml")
|
||||
#let example = schema.load(yaml("/gallery/example1.yaml"))
|
||||
//#schema.render(example)
|
||||
|
||||
= Chapter 1
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#import "../../src/lib.typ": *
|
||||
#import "@preview/rivet:0.3.1": *
|
||||
|
||||
#let conf = config.config(
|
||||
full-page: true,
|
||||
left-labels: true
|
||||
)
|
||||
#let alu = schema.load("/gallery/riscv/alu_instr.yaml")
|
||||
#let alu = schema.load(yaml("./alu_instr.yaml"))
|
||||
#schema.render(alu, config: conf)
|
||||
|
||||
#let branch = schema.load("/gallery/riscv/branch_instr.yaml")
|
||||
#let branch = schema.load(yaml("./branch_instr.yaml"))
|
||||
#schema.render(branch, config: conf)
|
||||
|
||||
#let mem = schema.load("/gallery/riscv/mem_instr.yaml")
|
||||
#let mem = schema.load(yaml("./mem_instr.yaml"))
|
||||
#schema.render(mem, config: conf)
|
||||
|
||||
BIN
gallery/test.pdf
BIN
gallery/test.pdf
Binary file not shown.
@@ -1,16 +1,17 @@
|
||||
#import "../src/lib.typ": *
|
||||
#import "@preview/rivet:0.3.1": *
|
||||
|
||||
#let test-yaml = schema.load("/gallery/test.yaml")
|
||||
#let test-yaml = schema.load(yaml("./test.yaml"))
|
||||
#schema.render(test-yaml, config: config.config(
|
||||
full-page: true
|
||||
))
|
||||
|
||||
#let test-json = schema.load("/gallery/test.json")
|
||||
#let test-json = schema.load(json("./test.json"))
|
||||
#schema.render(test-json, config: config.blueprint(
|
||||
full-page: true
|
||||
))
|
||||
|
||||
#let test-xml = schema.load("/gallery/test.xml")
|
||||
#let test-xml-raw = schema.xml-loader.parse(xml("./test.xml").first())
|
||||
#let test-xml = schema.load(test-xml-raw)
|
||||
#schema.render(test-xml, config: config.dark(
|
||||
full-page: true
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user