diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml new file mode 100644 index 0000000..b690ddd --- /dev/null +++ b/.github/workflows/latex.yml @@ -0,0 +1,50 @@ +name: Build LaTeX PDF + +on: + pull_request: + branches: + - master + +jobs: + build-pdf: + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + steps: + - name: Checkout PR branch + uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + persist-credentials: true + + - name: Compile LaTeX + uses: xu-cheng/latex-action@v4 + with: + root_file: core-design-document.tex + texlive_version: 2025 + os: debian + latexmk_use_lualatex: true + + - name: Upload PDF artifact + uses: actions/upload-artifact@v4 + with: + name: core-design-document-pdf + path: core-design-document.pdf + + + - name: Commit updated PDF back to PR branch + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + run: | + if git diff --quiet -- core-design-document.pdf; then + echo "PDF not changed, nothing to commit." + exit 0 + fi + + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add core-design-document.pdf + git commit -m "chore: update generated PDF from CI" + git push origin "HEAD:${GITHUB_HEAD_REF}" diff --git a/.gitignore b/.gitignore index 3924fc1..d4edba3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ build/* *.synctex.gz -.vscode/* \ No newline at end of file +.vscode/* +*.pdf \ No newline at end of file diff --git a/configuration/macroses/floats.sty b/configuration/macroses/floats.sty index 35a57b1..932a73b 100644 --- a/configuration/macroses/floats.sty +++ b/configuration/macroses/floats.sty @@ -10,7 +10,6 @@ % Стандаратная библиотека externalize больше не поддерживается и там нет нужных % вещей, например поддержки относительных путей \RequirePackage{memoize} -\mmzset{memo dir=build/} \input{macroses/utils/floats/images} diff --git a/core-design-document.pdf b/core-design-document.pdf index ce9d2c0..ad76e25 100644 Binary files a/core-design-document.pdf and b/core-design-document.pdf differ diff --git a/src/architectural-views/logical-structure/02-distributions.tex b/src/architectural-views/logical-structure/02-distributions.tex index 28b2bfd..3e5268d 100644 --- a/src/architectural-views/logical-structure/02-distributions.tex +++ b/src/architectural-views/logical-structure/02-distributions.tex @@ -95,7 +95,7 @@ \subsubsection{Реестр преобразований характерист \textbf{Инварианты.} \begin{enumerate} - \item Подграф \emph{definitive}-узлов всегда связен: из любой definitive-характеристики существует путь в любую другую. + \item Подграф \emph{definitive}-узлов всегда сильно связен: из любой definitive-характеристики существует путь в любую другую. \item \emph{Indefinitive}-узлы являются стоками: обратных рёбер из них в множество definitive нет. \end{enumerate}