Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
466a1e655c
|
||
|
|
be68c9f1bb | ||
|
|
77b9274434 | ||
|
|
ab3731e0df | ||
|
|
4536db3f09 | ||
|
|
2bfdf91f77 | ||
|
|
6e25ec7963
|
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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
|
||||
@@ -1,5 +1,7 @@
|
||||
# markdownViewr
|
||||
|
||||
> **This is KofTwentyTwo's contribution fork of [darinkelkhoff/markdownViewr](https://github.com/darinkelkhoff/markdownViewr).** It publishes no builds. The download, Homebrew cask and Sparkle updates below all come from the upstream project. The fork carries printing work that is offered upstream: native printing merged as [darinkelkhoff/markdownViewr#2](https://github.com/darinkelkhoff/markdownViewr/pull/2), and the print-styling fixes are open as [#3](https://github.com/darinkelkhoff/markdownViewr/pull/3). Report app issues upstream. The Windows port is [KofTwentyTwo/MarkdownViewr.Windows](https://github.com/KofTwentyTwo/MarkdownViewr.Windows).
|
||||
|
||||
A fast, beautiful markdown viewer for macOS. Open any markdown file — it live-reloads as you edit in your favorite editor.
|
||||
|
||||
[](https://github.com/darinkelkhoff/markdownViewr/releases/latest/download/markdownViewr.dmg)
|
||||
@@ -59,3 +61,12 @@ 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
|
||||
```
|
||||
@@ -275,7 +275,7 @@ struct MarkdownDocument: FileDocument {
|
||||
private struct HTMLConverter: MarkupWalker {
|
||||
private var result = ""
|
||||
|
||||
mutating func visit(_ document: Document) -> String {
|
||||
mutating func visit(_ document: Markdown.Document) -> String {
|
||||
result = ""
|
||||
for child in document.children {
|
||||
visitChild(child)
|
||||
|
||||
Reference in new issue
Block a user