Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
340e95f
readme: fix typo
jonathaningram Mar 28, 2021
78a31fd
use GitHub actions instead of Travis
jonathaningram Mar 28, 2021
7a8bdb0
add Sourcegraph badge to README
jonathaningram Mar 28, 2021
2d300dd
remove path separator from ioutil.TempFile prefix
jonathaningram Apr 9, 2021
3c9fbdc
docd: remove unused convertPath function
jonathaningram Apr 9, 2021
d1836ad
add note about ignored error check
jonathaningram Apr 9, 2021
69fa1c7
pptx_test: check returned error before deferring f.Close()
jonathaningram Apr 9, 2021
4c3bc02
rtf: don't ignore lines less than 5 characters long (#91)
senekor Apr 12, 2021
6792221
actions: stop building for Go 1.13
jonathaningram Apr 26, 2021
8f2bbf3
add test for TestConvertHTML (#93)
jonathaningram Apr 27, 2021
ba68c29
doc: improve metadata parsing so that titles can be reliably extracte…
dhowden Aug 17, 2021
4ea2c56
Updated dependency for poppler and removed bash arg check (#100)
justinkoke Aug 18, 2021
520b719
docd: refactor Dockerfile and publish to DockerHub (#101)
jsok Aug 18, 2021
14931be
.github: add workflow_dispatch trigger to docd
jsok Aug 19, 2021
d9d6bdb
.github: tag docd image with git SHA
jsok Aug 19, 2021
8787d35
docd/appengine: use 1.2.0 release
jsok Aug 20, 2021
aad8d24
README: add an example using curl (#102)
jsok Aug 20, 2021
1b86309
update: generate iWork proto files with latest version of protoc (#107)
helenamariano Jun 28, 2022
a02864a
client: improve client error messages (#113)
dhowden Jun 28, 2022
ac91322
Fix remote code execution vulnerability in the PDF OCR converter (#110)
helenamariano Jul 7, 2022
b8f9330
fix unbounded memory consumption vulnerability (#111)
helenamariano Jul 18, 2022
6009400
convert-doc: don't use doc if there was an error (#117)
jonathaningram Sep 5, 2022
2a8f9c9
docd/appengine: use 1.2.1 release (#120)
jonathaningram Sep 20, 2022
aedf291
.github: add Go 1.19 to matrix (#122)
jonathaningram Sep 20, 2022
4ae3532
docd: use Go 1.19 to build base image (#123)
jonathaningram Sep 20, 2022
79ad5cb
docd: add recovery middleware and allow reporting errors to GCP (#121)
jonathaningram Sep 20, 2022
1a220ca
docd: fix Dockerfile after change to Go 1.19 (#124)
jonathaningram Sep 20, 2022
7cf17a2
docd: fix binary paths (#125)
jonathaningram Sep 20, 2022
f1e3618
docd/appengine: use 1.3.2 release (#126)
jonathaningram Sep 20, 2022
b31fe59
docd: return JSON errors when things fail (#127)
jonathaningram Sep 20, 2022
5fd9b83
docd: fallback to AppEngine env vars when flags not provided (#128)
jonathaningram Sep 20, 2022
2b906ef
docd/appengine: enable error reporting and bump version (#129)
jonathaningram Sep 20, 2022
39bb88a
docd: install ca-certificates (#130)
jonathaningram Sep 20, 2022
e0e9efe
docd/appengine: use 1.3.5 release (#131)
jonathaningram Sep 20, 2022
ef634ba
increase min Go version to 1.19 and bump golang.org/x/net@0.7.0 (#135)
dependabot[bot] Mar 6, 2023
446da91
readme: update code.sajari.com/docconv/docd installation instructions…
rhaist Mar 6, 2023
ffe195a
doc: add simple test for ConvertDoc for .doc files (#143)
jonathaningram Sep 13, 2023
a08dc9b
doc: channel response before return (#134)
pixge Sep 13, 2023
fcf9650
all: remove refs to deprecated io/ioutil (#140)
testwill Sep 13, 2023
e7d2930
.github: test against Go 1.21 (#144)
jonathaningram Sep 13, 2023
5dbac9e
docd: bump to Go 1.21 and debian:12 (#145)
jonathaningram Sep 13, 2023
533191d
docd/appengine: bump to 1.3.7 (#146)
jonathaningram Sep 13, 2023
05986be
docd: add slog and JSON logging (#149)
jonathaningram Oct 30, 2023
3e8927b
docd/appengine: bump to 1.3.8 (#150)
jonathaningram Oct 30, 2023
8a9cc2b
readme: add macOS instructions for dependencies section (#151)
jonathaningram Oct 30, 2023
7b61cfa
v2: initial commit (#153)
jonathaningram Oct 31, 2023
32cfc7d
docd: don't panic on broken pipe errors (#155)
jonathaningram Nov 20, 2023
6c4e072
go.mod: use github.com/sajari/msoleps@race-fix (#156)
jonathaningram Nov 20, 2023
f75b8ae
docd/appengine: double memory (#157)
jonathaningram Nov 20, 2023
111413c
docd/appengine: use 2 instances (#158)
jonathaningram Nov 20, 2023
7e58553
add linux/arm64 platform to docd image (#159)
jonathaningram Nov 20, 2023
b7d56fb
docd: fix Docker workflow (#160)
jonathaningram Nov 20, 2023
8d1d7f3
Merge pull request from GHSA-3qm5-5hmp-8c6w
jupenur Jan 18, 2024
7b30bf6
go.mod: use the latest upstream richardlehane/msoleps dep (#164)
agcom Mar 3, 2024
d0fb907
Update build approach for Alpine
nickschuch Feb 16, 2021
048f2e4
Rebuild
nickschuch Jun 11, 2023
3e5f2b8
Bump to Alpine 3.17 (#2)
nickschuch Jun 19, 2023
a2d64de
Bump deps. Only build/push Alpine 3.17/3.18
nickschuch Sep 29, 2023
3839885
chore: update go version to 1.23 and all dependencies (#6)
parthpnx Nov 12, 2024
339a820
Bump to Go 1.24 (#8)
nickschuch Aug 12, 2025
fdec8d1
Delete vendor
kimpepper Dec 4, 2025
7bc9c03
Update workflow triggers
kimpepper Dec 4, 2025
78777fd
Add goreleaser and mise
kimpepper Dec 5, 2025
c061061
Install mise
kimpepper Dec 5, 2025
d4fb12d
Add more space
kimpepper Dec 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
99 changes: 0 additions & 99 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 🏗️ Build

on:
push:
branches: [main]
pull_request: ~

env:
GO_VERSION: "1.25"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}

- name: 📦 Install Mise
run: |
curl https://mise.run | sh
mise install

- name: Install dependencies
run: sudo apt install wv unrtf tidy

- name: Build
run: mise build

- name: Test
run: mise test
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🚀 Publish Release

on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+(-alpha[0-9]+|-beta[0-9]+)?'

env:
GO_VERSION: "1.25"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: 📦 Install Mise
run: |
curl https://mise.run | sh
mise install

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run GoReleaser Snapshot
run: mise release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 👨‍🔧 Build Snapshot Release

on:
workflow_dispatch: ~

env:
GO_VERSION: "1.25"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}

- name: 📦 Install Mise
run: |
curl https://mise.run | sh
mise install

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run GoReleaser Snapshot
run: mise snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
sajari-convert
*tests/
/dist
/vendor
50 changes: 50 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
project_name: docconv

version: 2

builds:
- id: docconv-build
main: ./docd
binary: docconv
ldflags:
- -extldflags '-static'
env:
- CGO_ENABLED=0
goos: [ linux ]
goarch: [ amd64, arm64 ]

release:
prerelease: auto
name_template: "docconv {{.Version}}"
github:
owner: skpr
name: docconv

nfpms:
- id: docconv-package
package_name: docconv
license: MIT
maintainer: Skpr
homepage: https://github.com/skpr/docconv
description: Fork of https://github.com/sajari/docconv to add additional package formats.
formats: [ apk ]
dependencies:
- tesseract-ocr
- poppler-utils
overrides:
apk:
dependencies:
- tesseract-ocr
- tesseract-ocr-dev
- poppler-utils

dockers_v2:
- images:
- "docker.io/skpr/docconv"
- "ghcr.io/skpr/docconv"
tags:
- "{{ .Version }}"
- "latest"
platforms:
- linux/amd64
- linux/arm64
25 changes: 25 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[tools]
go = "1.25"
"ubi:goreleaser/goreleaser" = "latest"

[env]
CGO_ENABLED=0
LGFLAGS="-extldflags '-static'"

[tasks.build]
description = "Build the application"
run = '''
go build -v -o ./dist/docconv ./docd
'''

[tasks.test]
description = "Run tests"
run = "go test -v ./..."

[tasks.snapshot]
description = "Create a snapshot release with Goreleaser"
run = "goreleaser release --snapshot --clean"

[tasks.release]
description = "Create a release with Goreleaser"
run = "goreleaser release --clean"
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

31 changes: 6 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
ARG alpine_version=3.21
FROM golang:1.24-alpine${alpine_version} as build
ARG ALPINE_VERSION=3.21
FROM alpine:$ALPINE_VERSION

RUN apk add make \
cmake \
gcc \
g++ \
poppler-utils \
wv \
lynx \
tesseract-ocr-dev
RUN apk add --no-cache tesseract-ocr tesseract-ocr-dev poppler-utils

WORKDIR /go/src/code.sajari.com/docconv
COPY . /go/src/code.sajari.com/docconv

RUN go build -o dist/docconv -tags ocr code.sajari.com/docconv/docd

ARG alpine_version=3.21
FROM alpine:${alpine_version}

RUN apk add tesseract-ocr \
tesseract-ocr-dev \
poppler-utils

COPY --from=build /go/src/code.sajari.com/docconv/dist/docconv /usr/local/bin/docconv

ENTRYPOINT ["/usr/local/bin/docconv"]
ARG TARGETPLATFORM
COPY $TARGETPLATFORM/docconv /usr/bin/docconv
ENTRYPOINT ["/usr/bin/docconv"]
19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

Loading