Skip to content

Commit 8a122eb

Browse files
committed
WIP: ENH: Myst-MD refactor
1 parent f05a535 commit 8a122eb

23 files changed

+1723
-9
lines changed

.github/workflows/build-myst.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Build MyST Document
2+
3+
on:
4+
push:
5+
branches: [ main, myst ]
6+
pull_request:
7+
branches: [ main, myst ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-myst:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Pixi
19+
uses: prefix-dev/[email protected]
20+
with:
21+
pixi-version: latest
22+
23+
- name: Install dependencies
24+
run: pixi install
25+
26+
- name: Build HTML
27+
run: pixi run build-html
28+
29+
- name: Build PDF
30+
run: pixi run build-pdf
31+
32+
- name: Build all formats
33+
run: pixi run build-complete
34+
35+
- name: Upload build artifacts
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: myst-outputs
39+
path: |
40+
_build/
41+
exports/
42+
retention-days: 30
43+
44+
build-source:
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
51+
- name: Setup Pixi
52+
uses: prefix-dev/[email protected]
53+
with:
54+
pixi-version: latest
55+
56+
- name: Install dependencies
57+
run: pixi install
58+
59+
- name: Build source code
60+
run: pixi run build-src
61+
62+
- name: Run tests
63+
run: pixi run test-src
64+
65+
- name: Upload test results
66+
uses: actions/upload-artifact@v4
67+
if: always()
68+
with:
69+
name: test-results
70+
path: |
71+
build/Testing/
72+
retention-days: 30
73+
74+
deploy:
75+
runs-on: ubuntu-latest
76+
needs: [build-myst, build-source]
77+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/myst'
78+
79+
steps:
80+
- name: Checkout repository
81+
uses: actions/checkout@v4
82+
83+
- name: Setup Pixi
84+
uses: prefix-dev/[email protected]
85+
with:
86+
pixi-version: latest
87+
88+
- name: Install dependencies
89+
run: pixi install
90+
91+
- name: Build for deployment
92+
run: pixi run build-complete
93+
94+
- name: Deploy to GitHub Pages
95+
uses: peaceiris/actions-gh-pages@v3
96+
if: github.ref == 'refs/heads/main'
97+
with:
98+
github_token: ${{ secrets.GITHUB_TOKEN }}
99+
publish_dir: ./_build/html
100+
cname: insight-journal-template.readthedocs.io

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# LaTeX build artifacts
12
*.aux
23
*.bbl
34
*.blg
@@ -9,3 +10,46 @@
910
*.ps
1011
*.toc
1112
_minted-*/
13+
14+
# MyST Markdown build outputs
15+
_build/
16+
site/
17+
.myst/
18+
*.epub
19+
*.meca
20+
21+
# Pixi environment and cache
22+
.pixi/
23+
pixi.lock
24+
__pycache__/
25+
*.pyc
26+
27+
# IDE and editor files
28+
.vscode/
29+
.idea/
30+
*.swp
31+
*.swo
32+
*~
33+
34+
# OS files
35+
.DS_Store
36+
Thumbs.db
37+
38+
# Build directories
39+
build/
40+
dist/
41+
CMakeCache.txt
42+
CMakeFiles/
43+
cmake_install.cmake
44+
Makefile
45+
46+
# Node.js (if using MyST plugins)
47+
node_modules/
48+
npm-debug.log*
49+
yarn-debug.log*
50+
yarn-error.log*
51+
52+
# Python virtual environments
53+
venv/
54+
env/
55+
.env

Document/LaTeX/InsightJournal.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@
11111111
\url{http://hdl.handle.net/10380/#1}}
11121112

11131113
\newcommand{\IJhandle}[1]{
1114-
Latest version available at the \href{http://www.insight-journal.org}{Insight Journal} [\urlhandle{#1}]\\
1114+
Latest version available at the \href{http://insight-journal.org}{Insight Journal} [\urlhandle{#1}]\\
11151115
Distributed under \href{http://creativecommons.org/licenses/by/3.0/us/}{Creative Commons Attribution License}}
11161116

11171117
\newcommand{\IJhandlefooter}[1]{
-4 Bytes
Binary file not shown.

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This repository contains a template for submitting
22
Technical Reports to the Insight Journal:
33

4-
http://www.insight-journal.org
4+
http://insight-journal.org
55

66
All source code in this repository is distributed
77
under the Apache 2.0 License

README.md

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,44 @@
1-
Insight Journal Template
2-
========================
1+
Insight Journal MyST Template
2+
===============================
33

4-
[![Build LaTeX document](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-test-latex.yml/badge.svg?branch=master)](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-test-latex.yml)
4+
[![Build MyST Document](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-myst.yml/badge.svg)](https://github.com/InsightSoftwareConsortium/InsightJournalTemplate/actions/workflows/build-myst.yml)
55

6-
This repository contains a template for submitting Technical Reports to the
7-
Insight Journal:
6+
This repository contains a modern template for submitting Technical Reports to the
7+
Insight Journal using MyST Markdown:
88

9-
http://www.insight-journal.org
9+
https://insight-journal.org
1010

11+
## Overview
1112

12-
Overleaf Link: https://www.overleaf.com/latex/templates/insight-journal/grjrhxkzzsvf
13+
This template has been transformed from LaTeX to **MyST Markdown**, providing:
14+
15+
- 🚀 **Modern authoring** with MyST Markdown
16+
- 📦 **Dependency management** with Pixi
17+
- 🔄 **Reproducible builds** and environments
18+
- 📄 **Multiple export formats** (PDF, HTML, DOCX, MECA)
19+
- 🧪 **Integrated source code** testing and validation
20+
- 📚 **Rich scientific features** (equations, citations, cross-references)
21+
22+
## Quick Start
23+
24+
See the complete documentation in [`doc/README.md`](doc/README.md).
25+
26+
### With Pixi (Recommended)
27+
28+
1. Install [Pixi](https://pixi.sh/latest/)
29+
2. Clone and build:
30+
```bash
31+
git clone https://github.com/InsightSoftwareConsortium/InsightJournalTemplate.git
32+
cd InsightJournalTemplate
33+
pixi install
34+
pixi run build-complete
35+
```
36+
37+
### Legacy LaTeX Template
38+
39+
The original LaTeX template is still available in the `Document/` directory.
40+
41+
**Overleaf Link**: https://www.overleaf.com/latex/templates/insight-journal/grjrhxkzzsvf
1342

1443

1544
License

0 commit comments

Comments
 (0)