From 37e49953792f8596ef1ea10434e144a7114ae65a Mon Sep 17 00:00:00 2001 From: josh crites Date: Fri, 24 May 2024 15:25:23 -0400 Subject: [PATCH 1/8] rm links to pages in item lists --- docs/sidebars.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/sidebars.js b/docs/sidebars.js index 1b84e84f303..9e9383590d8 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -59,10 +59,6 @@ export default { { label: "Proving System", type: "category", - link: { - type: "doc", - id: "protocol-specs/cryptography/proving-system/performance-targets", - }, items: [ "protocol-specs/cryptography/proving-system/performance-targets", "protocol-specs/cryptography/proving-system/overview", @@ -72,10 +68,6 @@ export default { { label: "Hashing", type: "category", - link: { - type: "doc", - id: "protocol-specs/cryptography/hashing/hashing", - }, items: [ "protocol-specs/cryptography/hashing/hashing", "protocol-specs/cryptography/hashing/poseidon2", @@ -217,7 +209,6 @@ export default { { label: "Decentralization", type: "category", - link: { type: "doc", id: "protocol-specs/decentralization/governance" }, items: [ "protocol-specs/decentralization/actors", "protocol-specs/decentralization/governance", From fcfda325d3780a5953250c76eceadfd8b02b5692 Mon Sep 17 00:00:00 2001 From: josh crites Date: Fri, 31 May 2024 16:01:05 -0400 Subject: [PATCH 2/8] add to ci --- .github/workflows/publish-docs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 195132a1849..59f5d635ca8 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -28,3 +28,11 @@ jobs: - timeout-minutes: 25 run: earthly-ci --no-output ./docs/+deploy-prod --NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} --NETLIFY_SITE_ID=${{ secrets.NETLIFY_SITE_ID }} + + pdf: + needs: setup + runs-on: ubuntu-latest + steps: + - name: generate pdf + run: npx docusaurus-prince-pdf -u http://docs.aztec.network/protocol-specs/intro --dest ./docs/pdf -o protocol-specs + timeout-minutes: 4 From d7a96c37a94c1ff6da8f7ee6be901b0028e57f11 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 3 Jun 2024 11:43:44 -0400 Subject: [PATCH 3/8] push to sep repo --- .github/workflows/publish-docs.yml | 31 +++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 59f5d635ca8..cc5e1af1ab6 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -32,7 +32,36 @@ jobs: pdf: needs: setup runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} + - name: Checkout protocol-specs-pdf + run: | + git config --global user.name AztecBot + git config --global user.email tech@aztecprotocol.com + # clone outside of aztec-packges + cd .. + git clone https://github.com/AztecProtocol/protocol-specs-pdf.git + - name: Install Prince + run: | + curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O + tar zxf prince-14.2-linux-generic-x86_64.tar.gz + cd prince-14.2-linux-generic-x86_64 + yes "" | sudo ./install.sh - name: generate pdf - run: npx docusaurus-prince-pdf -u http://docs.aztec.network/protocol-specs/intro --dest ./docs/pdf -o protocol-specs + run: | + cd docs + yarn serve + # add generated pdf to the protocol-specs-pdf repo cloned above + npx docusaurus-prince-pdf -u http://localhost:3000/protocol-specs/intro --output ../../protocol-specs-pdf/protocol-specs.pdf timeout-minutes: 4 + - name: push to pdf repo + run: | + cd ../protocol-specs-pdf + git add protocol-specs.pdf + git commit -m "chore: update protocol-specs.pdf" + git push From 8973ce675bf5e62e9171eaa883f9f97eea5c287c Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 3 Jun 2024 11:53:56 -0400 Subject: [PATCH 4/8] dont need history --- .github/workflows/publish-docs.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index cc5e1af1ab6..2c179b93dc8 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -37,7 +37,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - fetch-depth: 0 token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} - name: Checkout protocol-specs-pdf run: | From cdecf35a029b44bbc2455bf224056cba8cbe0062 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 3 Jun 2024 11:58:14 -0400 Subject: [PATCH 5/8] use checkout action --- .github/workflows/publish-docs.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 2c179b93dc8..170d4ad16b4 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -38,13 +38,12 @@ jobs: uses: actions/checkout@v3 with: token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} - - name: Checkout protocol-specs-pdf - run: | - git config --global user.name AztecBot - git config --global user.email tech@aztecprotocol.com - # clone outside of aztec-packges - cd .. - git clone https://github.com/AztecProtocol/protocol-specs-pdf.git + path: aztec-packages + - name: Checkout tools repo + uses: actions/checkout@v3 + with: + repository: AztecProtocol/protocol-specs-pdf + path: protocol-specs-pdf - name: Install Prince run: | curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O @@ -53,14 +52,16 @@ jobs: yes "" | sudo ./install.sh - name: generate pdf run: | - cd docs + cd aztec-packages/docs yarn serve # add generated pdf to the protocol-specs-pdf repo cloned above npx docusaurus-prince-pdf -u http://localhost:3000/protocol-specs/intro --output ../../protocol-specs-pdf/protocol-specs.pdf timeout-minutes: 4 - name: push to pdf repo run: | - cd ../protocol-specs-pdf + git config --global user.name AztecBot + git config --global user.email tech@aztecprotocol.com + cd protocol-specs-pdf git add protocol-specs.pdf git commit -m "chore: update protocol-specs.pdf" git push From e605a5c3f667d76ad79e884dbc8875b4807d1d32 Mon Sep 17 00:00:00 2001 From: josh crites Date: Mon, 3 Jun 2024 11:59:29 -0400 Subject: [PATCH 6/8] add token --- .github/workflows/publish-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 170d4ad16b4..08de639bedd 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -42,6 +42,7 @@ jobs: - name: Checkout tools repo uses: actions/checkout@v3 with: + token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} repository: AztecProtocol/protocol-specs-pdf path: protocol-specs-pdf - name: Install Prince From 7337e78a7abd62cf5914726603011cd2b9904958 Mon Sep 17 00:00:00 2001 From: ludamad Date: Mon, 3 Jun 2024 12:21:17 -0400 Subject: [PATCH 7/8] Update publish-docs.yml --- .github/workflows/publish-docs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 8410688417d..1c281579fd1 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -32,8 +32,7 @@ jobs: pdf: needs: setup - runs-on: ubuntu-latest - + runs-on: master-x86 steps: - name: Checkout uses: actions/checkout@v3 From 14e81c6cdec8019b16ce0d447a9f7ea47305cfa8 Mon Sep 17 00:00:00 2001 From: josh crites Date: Thu, 20 Jun 2024 14:07:21 -0400 Subject: [PATCH 8/8] update order --- .github/workflows/publish-docs.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 1c281579fd1..e1abe1531d9 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -29,7 +29,7 @@ jobs: - timeout-minutes: 25 run: earthly-ci --no-output ./docs/+deploy-prod --NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} --NETLIFY_SITE_ID=${{ secrets.NETLIFY_SITE_ID }} --COMMIT_TAG=${{ inputs.tag }} - + pdf: needs: setup runs-on: master-x86 @@ -39,31 +39,32 @@ jobs: with: token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} path: aztec-packages - - name: Checkout tools repo - uses: actions/checkout@v3 - with: - token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} - repository: AztecProtocol/protocol-specs-pdf - path: protocol-specs-pdf - name: Install Prince run: | curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O tar zxf prince-14.2-linux-generic-x86_64.tar.gz cd prince-14.2-linux-generic-x86_64 yes "" | sudo ./install.sh - - name: generate pdf + - name: Serve docs run: | cd aztec-packages/docs - yarn serve - # add generated pdf to the protocol-specs-pdf repo cloned above - npx docusaurus-prince-pdf -u http://localhost:3000/protocol-specs/intro --output ../../protocol-specs-pdf/protocol-specs.pdf + yarn build + yarn serve & + - name: Checkout PDF repo + uses: actions/checkout@v3 + with: + token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} + repository: AztecProtocol/protocol-specs-pdf + path: protocol-specs-pdf + - name: Generate PDF + run: | + npx docusaurus-prince-pdf -u http://localhost:3000/protocol-specs/intro --output protocol-specs-pdf/protocol-specs.pdf timeout-minutes: 4 - - name: push to pdf repo + - name: Push to PDF repo run: | git config --global user.name AztecBot git config --global user.email tech@aztecprotocol.com cd protocol-specs-pdf git add protocol-specs.pdf git commit -m "chore: update protocol-specs.pdf" - git push - + git push origin main