Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From trunk
To version-0.0.9
2024-04-22
| | |
15:01 |
|
...
(Leaf
check-in: 3e4f0da507 user: stern tags: trunk)
|
2024-04-18
| | |
13:30 |
|
...
(check-in: 85cb9d749b user: stern tags: trunk)
|
2021-01-29
| | |
18:44 |
|
...
(check-in: 84effdca96 user: stern tags: trunk)
|
18:16 |
|
...
(check-in: 5d25b46c82 user: stern tags: trunk, release, version-0.0.9)
|
17:34 |
|
...
(check-in: 2b8648602f user: stern tags: trunk)
|
| | |
Deleted .github/dependabot.yml.
1
2
3
4
5
6
7
8
9
10
11
12
|
|
-
-
-
-
-
-
-
-
-
-
-
-
|
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
rebase-strategy: "disabled"
|
Changes to LICENSE.txt.
1
2
3
4
5
6
7
8
|
1
2
3
4
5
6
7
8
|
-
+
|
Copyright (c) 2020-present Detlef Stern
Copyright (c) 2020-2021 Detlef Stern
Licensed under the EUPL
Zettelstore is licensed under the European Union Public License, version 1.2 or
later (EUPL v. 1.2). The license is available in the official languages of the
EU. The English version is included here. Please see
https://joinup.ec.europa.eu/community/eupl/og_page/eupl for official
|
︙ | | |
Changes to Makefile.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
-
+
-
+
+
-
+
+
+
+
+
-
-
+
+
+
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
-
+
-
+
+
+
+
+
-
+
|
## Copyright (c) 2020-present Detlef Stern
## Copyright (c) 2020 Detlef Stern
##
## This file is part of Zettelstore.
## This file is part of zettelstore.
##
## Zettelstore is licensed under the latest version of the EUPL (European Union
## Public License). Please see file LICENSE.txt for your rights and obligations
## under this license.
.PHONY: test check validate race run build build-dev release clean
.PHONY: check relcheck api version build release clean
PACKAGE := zettelstore.de/z/cmd/zettelstore
GO_LDFLAG_VERSION := -X main.buildVersion=$(shell go run tools/version.go || echo unknown)
GOFLAGS_DEVELOP := -ldflags "$(GO_LDFLAG_VERSION)" -tags osusergo,netgo
GOFLAGS_RELEASE := -ldflags "$(GO_LDFLAG_VERSION) -w" -tags osusergo,netgo
check:
go run tools/check/check.go
test:
go test ./...
relcheck:
go run tools/check/check.go -r
check:
go vet ./...
~/go/bin/golint ./...
validate: test check
api:
go run tools/testapi/testapi.go
race:
go test -race ./...
version:
@echo $(shell go run tools/build/build.go version)
build-dev:
mkdir -p bin
go build $(GOFLAGS_DEVELOP) -o bin/zettelstore $(PACKAGE)
build:
mkdir -p bin
go run tools/build/build.go build
go build $(GOFLAGS_RELEASE) -o bin/zettelstore $(PACKAGE)
release:
go run tools/build/build.go release
mkdir -p releases
GOARCH=amd64 GOOS=linux go build $(GOFLAGS_RELEASE) -o releases/zettelstore $(PACKAGE)
GOARCH=arm GOARM=6 GOOS=linux go build $(GOFLAGS_RELEASE) -o releases/zettelstore-arm6 $(PACKAGE)
GOARCH=amd64 GOOS=darwin go build $(GOFLAGS_RELEASE) -o releases/iZettelstore $(PACKAGE)
GOARCH=amd64 GOOS=windows go build $(GOFLAGS_RELEASE) -o releases/zettelstore.exe $(PACKAGE)
clean:
go run tools/clean/clean.go
rm -rf bin releases
|
Changes to README.md.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
1
2
3
|
-
+
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
# Zettelstore
# zettelstore
**Zettelstore** is a software that collects and relates your notes
(“zettel”) to represent and enhance your knowledge. It helps with
many tasks of personal knowledge management by explicitly supporting the
[Zettelkasten method](https://en.wikipedia.org/wiki/Zettelkasten). The method
is based on creating many individual notes, each with one idea or information,
that are related to each other. Since knowledge is typically build up
gradually, one major focus is a long-term store of these notes, hence the name
“Zettelstore”.
A storage and service for zettel notes.
To get an initial impression, take a look at the
[manual](https://zettelstore.de/manual/). It is a live example of the
zettelstore software, running in read-only mode.
[Zettelstore Client](https://t73f.de/r/zsc) provides client software to access
Zettelstore via its API more easily, [Zettelstore
Contrib](https://zettelstore.de/contrib) contains contributed software, which
often connects to Zettelstore via its API. Some of the software packages may be
experimental.
The software, including the manual, is licensed
under the [European Union Public License 1.2 (or
later)](https://zettelstore.de/home/file?name=LICENSE.txt&ci=trunk).
[Stay tuned](https://mastodon.social/tags/Zettelstore) …
|
Changes to VERSION.
Changes to ast/ast.go.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
-
+
-
+
-
-
-
-
+
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
+
|
//-----------------------------------------------------------------------------
// Copyright (c) 2020-present Detlef Stern
// Copyright (c) 2020 Detlef Stern
//
// This file is part of Zettelstore.
// This file is part of zettelstore.
//
// Zettelstore is licensed under the latest version of the EUPL (European Union
// Public License). Please see file LICENSE.txt for your rights and obligations
// under this license.
//
// SPDX-License-Identifier: EUPL-1.2
// SPDX-FileCopyrightText: 2020-present Detlef Stern
//-----------------------------------------------------------------------------
// Package ast provides the abstract syntax tree for parsed zettel content.
// Package ast provides the abstract syntax tree.
package ast
import (
"net/url"
"zettelstore.de/z/zettel"
"zettelstore.de/z/zettel/id"
"zettelstore.de/z/zettel/meta"
"zettelstore.de/z/domain"
"zettelstore.de/z/domain/id"
"zettelstore.de/z/domain/meta"
)
// ZettelNode is the root node of the abstract syntax tree.
// It is *not* part of the visitor pattern.
type ZettelNode struct {
Meta *meta.Meta // Original metadata
Content zettel.Content // Original content
Zid id.Zid // Zettel identification.
InhMeta *meta.Meta // Metadata of the zettel, with inherited values.
Ast BlockSlice // Zettel abstract syntax tree is a sequence of block nodes.
Zettel domain.Zettel
Zid id.Zid // Zettel identification.
InhMeta *meta.Meta // Meta data of the zettel, with inherited values.
Title InlineSlice // Zettel title is a sequence of inline nodes.
Ast BlockSlice // Zettel abstract syntax tree is a sequence of block nodes.
Syntax string // Syntax / parser that produced the Ast
}
// Node is the interface, all nodes must implement.
type Node interface {
WalkChildren(v Visitor)
Accept(v Visitor)
}
// BlockNode is the interface that all block nodes must implement.
type BlockNode interface {
Node
blockNode()
}
// BlockSlice is a slice of BlockNodes.
type BlockSlice []BlockNode
// ItemNode is a node that can occur as a list item.
type ItemNode interface {
BlockNode
itemNode()
}
|
︙ | | |
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
|
type DescriptionSlice []DescriptionNode
// InlineNode is the interface that all inline nodes must implement.
type InlineNode interface {
Node
inlineNode()
}
// InlineSlice is a slice of InlineNodes.
type InlineSlice []InlineNode
// Reference is a reference to external or internal material.
type Reference struct {
URL *url.URL
Value string
State RefState
}
// RefState indicates the state of the reference.
type RefState int
// Constants for RefState
const (
RefStateInvalid RefState = iota // Invalid Reference
RefStateZettel // Reference to an internal zettel
RefStateSelf // Reference to same zettel with a fragment
RefStateFound // Reference to an existing internal zettel, URL is ajusted
RefStateBroken // Reference to a non-existing internal zettel
RefStateInvalid RefState = iota // Invalid URL
RefStateZettel // Valid reference to an internal zettel
RefStateZettelSelf // Valid reference to same zettel with a fragment
RefStateZettelFound // Valid reference to an existing internal zettel
RefStateZettelBroken // Valid reference to a non-existing internal zettel
RefStateHosted // Reference to local hosted non-Zettel, without URL change
RefStateBased // Reference to local non-Zettel, to be prefixed
RefStateQuery // Reference to a zettel query
RefStateExternal // Reference to external material
RefStateLocal // Valid reference to a non-zettel, but local hosted
RefStateExternal // Valid reference to external material
)
|
Added ast/attr.go.