Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
791e487737
|
||
|
|
736e6f3b6e
|
No files matched your search
@@ -1,16 +0,0 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
tags: ['v*']
|
||||
jobs:
|
||||
macos:
|
||||
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/macos.yaml@v1
|
||||
secrets: inherit
|
||||
with:
|
||||
# Build only: the app and the test bundle are compiled unsigned, the tests are not run. They are
|
||||
# app-hosted XCTests and the grogu runner has no GUI session for testmanagerd; run `just test`
|
||||
# locally before merging (README, Building from Source). Package.swift has no test target.
|
||||
commands: |
|
||||
xcodegen generate
|
||||
xcodebuild -quiet -project markdownViewr.xcodeproj -scheme markdownViewr -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO build-for-testing
|
||||
@@ -0,0 +1,2 @@
|
||||
# Sparkle SUPublicEDKey: EdDSA public verification key, not a secret (exact historical finding only)
|
||||
b3940a3656a8dbc8d669825ed1d0cc0ec9e619d4:project.yml:generic-api-key:66
|
||||
@@ -61,12 +61,3 @@ just run
|
||||
```
|
||||
|
||||
`just --list` shows all available recipes.
|
||||
|
||||
### Tests
|
||||
|
||||
The tests are app-hosted XCTests (`markdownViewrTests`). CI builds the app and the test bundle unsigned
|
||||
but does not run them (the CI macOS runner has no GUI session), so run them locally before merging:
|
||||
|
||||
```bash
|
||||
just test # xcodegen generate first if the project is stale
|
||||
```
|
||||
@@ -60,7 +60,7 @@ struct MarkdownDocument: FileDocument {
|
||||
|
||||
let rawContent = frontmatter != nil ? body : markdown
|
||||
let content = preProcessSubscript(rawContent, enabled: extensions.subscript_)
|
||||
let document = Document(parsing: content)
|
||||
let document = Markdown.Document(parsing: content)
|
||||
var htmlVisitor = HTMLConverter()
|
||||
html += htmlVisitor.visit(document)
|
||||
return applyExtensions(html, extensions: extensions)
|
||||
@@ -127,7 +127,7 @@ struct MarkdownDocument: FileDocument {
|
||||
}
|
||||
|
||||
private static func renderFrontmatterAsMarkdown(_ yaml: String) -> String {
|
||||
let document = Document(parsing: "---\n\(yaml)\n---")
|
||||
let document = Markdown.Document(parsing: "---\n\(yaml)\n---")
|
||||
var htmlVisitor = HTMLConverter()
|
||||
return htmlVisitor.visit(document)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user