Import (Import on a space's page list, or POST /spaces/{id}/import):
- Word (.docx, up to 25 MB): Title and heading styles, bulleted and
numbered lists with nesting, quotes, code styles, bold, italic,
underline, strikethrough, links (including HYPERLINK fields) and
images, which are stored as attachments of the new page. Tables come in
as one paragraph per row, as in HTML import.
- Notion export (.zip, Markdown & CSV or HTML, up to 100 MB and 2000
pages, split exports included): rebuilds the page tree, points links
between the pages (relative and notion.so ones) at the new pages, and
stores images and files as attachments. A database becomes a page that
lists its rows, with the row pages under it. The response lists the
pages made at the parent's level.
- Every file is read before any page is made, so a bad file leaves
nothing behind. Archives are capped by bytes actually unpacked, not by
the sizes they declare.
PDF export (page menu, or ?format=pdf): A4 with the Go fonts (Latin,
Polish, Greek, Cyrillic), a bookmark per heading and page numbers.
Images on the page are drawn in (JPEG as is; PNG, GIF and WebP redrawn);
images on other sites are not fetched. Diagrams become a link to their
file and Mermaid charts show their source. Emoji are left out, since the
fonts have none.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
2.8 KiB
AMPL
68 lines
2.8 KiB
AMPL
module docwell/server
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/blevesearch/bleve/v2 v2.6.1
|
|
github.com/coder/websocket v1.8.15
|
|
github.com/go-pdf/fpdf v0.9.0
|
|
github.com/oapi-codegen/runtime v1.8.0
|
|
github.com/pquerna/otp v1.5.0
|
|
github.com/tetratelabs/wazero v1.12.0
|
|
github.com/yuin/goldmark v1.8.7
|
|
golang.org/x/image v0.47.0
|
|
golang.org/x/net v0.62.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/RoaringBitmap/roaring/v2 v2.14.5 // indirect
|
|
github.com/bits-and-blooms/bitset v1.24.2 // indirect
|
|
github.com/blevesearch/bleve_index_api v1.4.1 // indirect
|
|
github.com/blevesearch/geo v0.2.6 // indirect
|
|
github.com/blevesearch/go-faiss v1.1.5 // indirect
|
|
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
|
github.com/blevesearch/gtreap v0.1.1 // indirect
|
|
github.com/blevesearch/mmap-go v1.2.0 // indirect
|
|
github.com/blevesearch/scorch_segment_api/v2 v2.4.10 // indirect
|
|
github.com/blevesearch/segment v0.9.1 // indirect
|
|
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
|
github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
|
|
github.com/blevesearch/vellum v1.2.0 // indirect
|
|
github.com/blevesearch/zapx/v11 v11.4.3 // indirect
|
|
github.com/blevesearch/zapx/v12 v12.4.3 // indirect
|
|
github.com/blevesearch/zapx/v13 v13.4.3 // indirect
|
|
github.com/blevesearch/zapx/v14 v14.4.3 // indirect
|
|
github.com/blevesearch/zapx/v15 v15.4.3 // indirect
|
|
github.com/blevesearch/zapx/v16 v16.3.4 // indirect
|
|
github.com/blevesearch/zapx/v17 v17.2.3 // indirect
|
|
github.com/boombuler/barcode v1.0.1 // indirect
|
|
github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
|
|
github.com/getkin/kin-openapi v0.142.0 // indirect
|
|
github.com/go-openapi/jsonpointer v0.23.1 // indirect
|
|
github.com/go-openapi/swag/jsonname v0.26.0 // indirect
|
|
github.com/golang/snappy v1.0.0 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/mschoch/smat v0.2.0 // indirect
|
|
github.com/oapi-codegen/oapi-codegen/v2 v2.8.1 // indirect
|
|
github.com/oasdiff/yaml v0.1.1 // indirect
|
|
github.com/oasdiff/yaml3 v0.0.14 // indirect
|
|
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
|
|
github.com/speakeasy-api/jsonpath v0.6.3 // indirect
|
|
github.com/speakeasy-api/openapi v1.24.0 // indirect
|
|
github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
|
|
go.etcd.io/bbolt v1.4.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
|
golang.org/x/mod v0.41.0 // indirect
|
|
golang.org/x/sync v0.24.0 // indirect
|
|
golang.org/x/sys v0.49.0 // indirect
|
|
golang.org/x/text v0.43.0 // indirect
|
|
golang.org/x/tools v0.51.0 // indirect
|
|
google.golang.org/protobuf v1.36.6 // indirect
|
|
)
|
|
|
|
tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
|