Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: mvn -B -ntp clean verify

- name: Smoke test packaged Java app
run: bash scripts/smoke-packaged-jar.sh target/doc2faq-0.5.0.jar
run: bash scripts/smoke-packaged-jar.sh target/doc2faq-0.6.0.jar

- name: Test browser export safety
if: matrix.java == '21'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Publish Doc2FAQ v0.5.0
name: Publish Doc2FAQ v0.6.0

# First run automatically when this workflow lands on main. Manual reruns
# remain available, but the existing-release check prevents duplicate tags.
on:
push:
branches: [main]
paths:
- .github/workflows/publish-v0.5.0.yml
- .github/workflows/publish-v0.6.0.yml
workflow_dispatch:

permissions:
contents: read

concurrency:
group: doc2faq-v0.5.0-release
group: doc2faq-v0.6.0-release
cancel-in-progress: false

jobs:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Build, test, and smoke-test the packaged application
run: |
mvn -B -ntp clean verify
bash scripts/smoke-packaged-jar.sh target/doc2faq-0.5.0.jar
bash scripts/smoke-packaged-jar.sh target/doc2faq-0.6.0.jar

publish:
if: github.repository == 'OKAN-SOFTWARE/Doc2FAQ' && github.ref == 'refs/heads/main'
Expand All @@ -61,23 +61,23 @@ jobs:
with:
node-version: '22'

- name: Refuse to replace an existing v0.5.0 release or tag
- name: Refuse to replace an existing v0.6.0 release or tag
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view v0.5.0 >/dev/null 2>&1; then
echo "v0.5.0 is already published. Refusing to overwrite it."
if gh release view v0.6.0 >/dev/null 2>&1; then
echo "v0.6.0 is already published. Refusing to overwrite it."
exit 1
fi
if [ -n "$(git tag -l v0.5.0)" ]; then
echo "The v0.5.0 tag already exists. Review it before publishing."
if [ -n "$(git tag -l v0.6.0)" ]; then
echo "The v0.6.0 tag already exists. Review it before publishing."
exit 1
fi

- name: Build and verify the release JAR
run: |
mvn -B -ntp clean verify
bash scripts/smoke-packaged-jar.sh target/doc2faq-0.5.0.jar
bash scripts/smoke-packaged-jar.sh target/doc2faq-0.6.0.jar

- name: Verify browser demo and Doc2FAQ homepage
run: |
Expand All @@ -89,33 +89,33 @@ jobs:
shell: bash
run: |
set -euo pipefail
mkdir -p release/staging/Doc2FAQ-0.5.0
cp target/doc2faq-0.5.0.jar release/doc2faq-0.5.0.jar
cp release/doc2faq-0.5.0.jar release/staging/Doc2FAQ-0.5.0/
cp packaging/Start-Doc2FAQ.cmd packaging/WINDOWS-QUICK-START.md release/staging/Doc2FAQ-0.5.0/
mkdir -p release/staging/Doc2FAQ-0.6.0
cp target/doc2faq-0.6.0.jar release/doc2faq-0.6.0.jar
cp release/doc2faq-0.6.0.jar release/staging/Doc2FAQ-0.6.0/
cp packaging/Start-Doc2FAQ.cmd packaging/WINDOWS-QUICK-START.md release/staging/Doc2FAQ-0.6.0/
# Windows cmd.exe expects CRLF-terminated batch files.
sed -i 's/$/\r/' release/staging/Doc2FAQ-0.5.0/Start-Doc2FAQ.cmd
sed -i 's/$/\r/' release/staging/Doc2FAQ-0.6.0/Start-Doc2FAQ.cmd
(
cd release/staging
zip -q -r ../Doc2FAQ-0.5.0-Windows.zip Doc2FAQ-0.5.0
zip -q -r ../Doc2FAQ-0.6.0-Windows.zip Doc2FAQ-0.6.0
)
unzip -t release/Doc2FAQ-0.5.0-Windows.zip
unzip -p release/Doc2FAQ-0.5.0-Windows.zip Doc2FAQ-0.5.0/doc2faq-0.5.0.jar | cmp - release/doc2faq-0.5.0.jar
unzip -t release/Doc2FAQ-0.6.0-Windows.zip
unzip -p release/Doc2FAQ-0.6.0-Windows.zip Doc2FAQ-0.6.0/doc2faq-0.6.0.jar | cmp - release/doc2faq-0.6.0.jar
(
cd release
sha256sum doc2faq-0.5.0.jar Doc2FAQ-0.5.0-Windows.zip > SHA256SUMS.txt
sha256sum doc2faq-0.6.0.jar Doc2FAQ-0.6.0-Windows.zip > SHA256SUMS.txt
sha256sum -c SHA256SUMS.txt
)

- name: Publish exactly the tested commit
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create v0.5.0 \
gh release create v0.6.0 \
--target "$GITHUB_SHA" \
--title "Doc2FAQ v0.5.0 — Source & Review" \
--notes-file docs/RELEASE-NOTES-0.5.0.md \
--title "Doc2FAQ v0.6.0 — Approved Exports" \
--notes-file docs/RELEASE-NOTES-0.6.0.md \
--latest \
release/doc2faq-0.5.0.jar \
release/Doc2FAQ-0.5.0-Windows.zip \
release/doc2faq-0.6.0.jar \
release/Doc2FAQ-0.6.0-Windows.zip \
release/SHA256SUMS.txt
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable Doc2FAQ changes are recorded here. Version numbers follow semantic versioning; entries describe shipped source functionality and do not imply an external AI service.

## [Unreleased]
## [0.6.0] — 2026-12-01

### Added
- Export preview, copy, and downloads can include only approved FAQs, with a count of the selected entries.
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Doc2FAQ is a Java 21 / Spring Boot document-to-FAQ workbench. Paste text or uplo

Created by **Okan Tiktas** · [OKAN-SOFTWARE](https://github.com/OKAN-SOFTWARE).

> **Latest release: v0.5.0 — Source & Review.** Download the ready-to-run JAR, Windows ZIP, and checksum file from [GitHub Releases](https://github.com/OKAN-SOFTWARE/Doc2FAQ/releases/tag/v0.5.0).
> Download the ready-to-run JAR, Windows ZIP, and checksum file from the [latest GitHub release](https://github.com/OKAN-SOFTWARE/Doc2FAQ/releases/latest).

## In development for v0.6.0
## New in v0.6.0 — Approved Exports

- **Approved-only exports:** choose **All FAQs** or **Approved only** for preview, copy, and downloads. The selection count updates as you review.
- **Original PDF pages:** the development browser demo shows page numbers beside the extracted passage. Open the referenced page in a new tab while the original PDF is loaded.
- **Original PDF pages:** the browser demo shows page numbers beside the extracted passage. Open the referenced page in a new tab while the original PDF is loaded.
- **Draft quality:** browser suggestions use more specific phrasing for common sections and keep adjacent explicit Q&A separate. Similar-question flags compare normalized wording in order so differences in roles and qualifying terms stay visible.

## New in v0.5.0 — Source & Review
Expand All @@ -23,7 +23,7 @@ I redesigned Doc2FAQ with an illustrated homepage and a responsive FAQ workbench
- **Search and review filters:** combine a case-insensitive question/answer search with **All statuses**, **Needs review**, or **Approved**. The summary shows visible, approved, and pending counts. **Clear filters** restores the full list. Filters never change what is saved, previewed, or exported: all FAQs remain included, and incomplete entries still block export.
- **Saved work compatibility:** approval status is preserved in project downloads and optional autosave. New saves use project schema 2; v0.4 schema-1 files still open with FAQs marked Needs review. Schema-2 files require v0.5 or later to reopen.

The source builds version `0.5.0` from `pom.xml` as `target/doc2faq-0.5.0.jar`. The published ZIP contains the same JAR, a Windows launcher, and a quick-start guide; release downloads also include SHA-256 checksums.
The source builds version `0.6.0` from `pom.xml` as `target/doc2faq-0.6.0.jar`. The published ZIP contains the same JAR, a Windows launcher, and a quick-start guide; release downloads also include SHA-256 checksums.

## New in v0.4.0

Expand Down Expand Up @@ -68,7 +68,7 @@ For detailed changes, see [CHANGELOG.md](CHANGELOG.md). For the release checklis

## Requirements

- To run a release download: **Java 21 or newer**. The JAR targets Java 21 bytecode; v0.5.0's **required automated compatibility matrix is Java 21–26**. Java 27 **passed an exploratory CI build and packaged-JAR smoke test** on November 8, 2026, but is not a committed v0.5.0 support target; formal support can follow in a later release. Newer Java versions are not automatically guaranteed compatible. The JAR works on Windows, macOS, and Linux; the Windows ZIP includes `Start-Doc2FAQ.cmd` and a quick-start guide. Extract the ZIP into a new folder, stop any older Doc2FAQ process, run the launcher, and open **http://localhost:8080**. Maven and Node.js are only needed to build and test from source.
- To run a release download: **Java 21 or newer**. The JAR targets Java 21 bytecode; v0.6.0's **required automated compatibility matrix is Java 21–26**. Java 27 **passed an exploratory CI build and packaged-JAR smoke test** on November 8, 2026, but is not a committed v0.6.0 support target; formal support can follow in a later release. Newer Java versions are not automatically guaranteed compatible. The JAR works on Windows, macOS, and Linux; the Windows ZIP includes `Start-Doc2FAQ.cmd` and a quick-start guide. Extract the ZIP into a new folder, stop any older Doc2FAQ process, run the launcher, and open **http://localhost:8080**. Maven and Node.js are only needed to build and test from source.

To build from source:

Expand Down Expand Up @@ -190,15 +190,15 @@ After updating your checkout to the latest `main`, run these commands from the d
```cmd
mvn -B -ntp clean verify
node --test src/test/js/*.test.cjs
java -jar target/doc2faq-0.5.0.jar
java -jar target/doc2faq-0.6.0.jar
```

The JavaScript checks require Node.js. Keep the terminal open while the app runs, and use **Ctrl+C** to stop it. Open **http://localhost:8080** and refresh the browser to load the updated frontend.

If port 8080 is occupied, stop the previous Doc2FAQ process or use an alternate port:

```cmd
java -jar target/doc2faq-0.5.0.jar --server.port=8081
java -jar target/doc2faq-0.6.0.jar --server.port=8081
```

Then open **http://localhost:8081**. Merging source changes does not update an existing JAR or a running Java process; rebuild and restart to use the fixes. Published JARs must be built from the corresponding release commit.
Expand Down Expand Up @@ -353,4 +353,4 @@ MIT · Copyright © 2026 **Okan Tiktas**.

## Later releases

Optional AI generation with explicit opt-in and token/cost limits, OCR, and account/subscription workflows are outside the current v0.5.0 scope. See [docs/RELEASING.md](docs/RELEASING.md) for the validation and release process.
Optional AI generation with explicit opt-in and token/cost limits, OCR, and account/subscription workflows are outside the current v0.6.0 scope. See [docs/RELEASING.md](docs/RELEASING.md) for the validation and release process.
17 changes: 17 additions & 0 deletions docs/RELEASE-NOTES-0.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Doc2FAQ v0.6.0 — Approved Exports

I added an export scope so you can share the FAQs you reviewed even while the rest of the draft is still in progress.

- Choose **All FAQs** or **Approved only**. Preview, copy, and downloads use the same selection in draft order. The export count is independent of what the review filters show.
- In the browser demo, source references show original PDF page numbers. Select **View source beside answer** to open the relevant page while the PDF is loaded. Saved projects retain the page numbers and extracted text.
- The browser demo suggests more specific questions for common handbook, product guide, and policy sections. It keeps adjacent explicit Q&A separate and preserves distinct answers for review.

The app targets Java 21. Release checks cover JDKs 21 through 26.

## Downloads

- `doc2faq-0.6.0.jar` is the standalone Java app.
- `Doc2FAQ-0.6.0-Windows.zip` contains the same JAR, a Windows launcher, and a quick-start guide.
- `SHA256SUMS.txt` lists checksums for both downloads.

See the [user guide](https://github.com/OKAN-SOFTWARE/Doc2FAQ/blob/v0.6.0/docs/USER-GUIDE.md) or try the [browser demo](https://okantiktas.com/projects/doc2faq/demo/).
Loading