diff --git a/.github/workflows/main.yml b/.github/workflows/build.yml similarity index 69% rename from .github/workflows/main.yml rename to .github/workflows/build.yml index 2d653322..7e18b8b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/build.yml @@ -110,49 +110,49 @@ jobs: channel: '#tiptap-notifications' if: failure() - # build: - # runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - # needs: lint + needs: lint - # env: - # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - # strategy: - # matrix: - # node-version: [14] + strategy: + matrix: + node-version: [14] - # steps: + steps: - # - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v2.3.4 - # - name: Use Node.js ${{ matrix.node-version }} - # uses: actions/setup-node@v2.1.2 - # with: - # node-version: ${{ matrix.node-version }} + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2.1.2 + with: + node-version: ${{ matrix.node-version }} - # - name: Load cached dependencies - # uses: actions/cache@v2 - # id: cache - # with: - # path: | - # **/node_modules - # /home/runner/.cache/Cypress - # key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} + - name: Load cached dependencies + uses: actions/cache@v2 + id: cache + with: + path: | + **/node_modules + /home/runner/.cache/Cypress + key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }} - # - name: Install dependencies - # id: install-dependencies - # if: steps.cache.outputs.cache-hit != 'true' - # run: yarn install + - name: Install dependencies + id: install-dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: yarn install - # - name: Build packages dependencies - # id: build-packages - # run: yarn build:packages + - name: Try to build the packages + id: build-packages + run: yarn build:ci - # - name: Send Slack notifications - # uses: act10ns/slack@v1 - # with: - # status: ${{ job.status }} - # steps: ${{ toJson(steps) }} - # channel: '#tiptap-notifications' - # if: failure() + - name: Send Slack notifications + uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: '#tiptap-notifications' + if: failure() diff --git a/.github/workflows/clean-up.yml b/.github/workflows/clean-up.yml deleted file mode 100644 index 9787d5e6..00000000 --- a/.github/workflows/clean-up.yml +++ /dev/null @@ -1,20 +0,0 @@ -# GitHub Action to remove old artifacts -# Documentation: https://github.com/c-hive/gha-remove-artifacts - -name: clean-up - -on: - schedule: - # Every day at 1am - - cron: '0 1 * * *' - -jobs: - remove-old-artifacts: - runs-on: ubuntu-latest - timeout-minutes: 10 - - steps: - - name: Remove old artifacts - uses: c-hive/gha-remove-artifacts@v1 - with: - age: '1 hour' diff --git a/docs/src/docPages/guide/build-custom-extensions.md b/docs/src/docPages/guide/build-custom-extensions.md index da1e454b..b5d819cd 100644 --- a/docs/src/docPages/guide/build-custom-extensions.md +++ b/docs/src/docPages/guide/build-custom-extensions.md @@ -130,7 +130,7 @@ const CustomParagraph = Paragraph.extend({ }) // Result: -//
Example Text
+//Example Text
``` You can also control how the attribute is parsed from the HTML. Let’s say you want to store the color in an attribute called `data-color`, here’s how you would do that: diff --git a/docs/src/docPages/overview/installation.md b/docs/src/docPages/overview/installation.md index 7a63f89b..fd030256 100644 --- a/docs/src/docPages/overview/installation.md +++ b/docs/src/docPages/overview/installation.md @@ -49,6 +49,32 @@ Note that tiptap needs to run in the client, not on the server. It’s required [Read more](https://nuxtjs.org/api/components-client-only) +## Option 3: CDN + +To pull in tiptap for quick demos or just giving it a spin, grab the latest build via CDN: + +```html + + + + + + + + + + +