-
Notifications
You must be signed in to change notification settings - Fork 2
feat: ds-docs plataforma de documentação do design system #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cesaroeduardo
wants to merge
54
commits into
main
Choose a base branch
from
ds-docs-platform
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
5e9fe31
feat: initial commit for ds-docs
cesaroeduardo ed163b8
feat: search engine and playground
cesaroeduardo f445850
feat: i18n and component status
cesaroeduardo 1712d42
feat: governance, validations and analytics
cesaroeduardo e6798d6
feat: i18n content and versioning
cesaroeduardo d48c1a8
chore: layout playground
cesaroeduardo ce958cd
chore: styles docs
cesaroeduardo 75a87cd
feat: component tabs
cesaroeduardo 2cc3756
chore: styles
cesaroeduardo 61b9d59
fix: componentes in usage
cesaroeduardo 8643adc
feat: adjustments in style
cesaroeduardo 55543c3
feat: code highlight in code examples
cesaroeduardo 7573c73
feat: tokens and foundations page start
cesaroeduardo 9d04b72
fix: languages structure pages
cesaroeduardo c0460a2
fix: .astro ignore
cesaroeduardo b6ee761
Revert "fix: .astro ignore"
cesaroeduardo e26d679
fix: language components
cesaroeduardo 847c983
feat: dark / light playground
cesaroeduardo 1b39fcd
fix: css to tailwind
cesaroeduardo 5de572c
fix: icons svg to icons
cesaroeduardo 7385d01
fix: icon integration doc
cesaroeduardo 2fe617c
fix: icon size theme
cesaroeduardo d023784
fix: build error
cesaroeduardo 99b2671
fix: build errors
cesaroeduardo 99aadb3
Merge branch 'ds-docs-platform' of https://github.com/aziontech/webki…
cesaroeduardo cc9f33c
fix: search
cesaroeduardo 6928e3a
feat: add motion.dev to docs
cesaroeduardo 896d627
feat: pattern and block pages, icons too
cesaroeduardo 7221867
feat: button generated by figma
cesaroeduardo 435cf3e
Merge branch 'main' into ds-docs-platform
cesaroeduardo 63b37c7
feat: initial script extract components from webkit
cesaroeduardo 8a80040
Merge branch 'main' into ds-docs-platform
cesaroeduardo 4d00467
fix: components renderization
cesaroeduardo 75fc8ec
fix: azion theme import
cesaroeduardo 0d20470
fix: theme issues
cesaroeduardo 82dea2f
fix: theme adjustments
cesaroeduardo 2311889
fix: theme issues in ds-docs
cesaroeduardo 2a19e9e
fix: theme semantic tokens fix
cesaroeduardo 53e01d9
fix: playground theme switch
cesaroeduardo 6516c80
fix: general adjustments
cesaroeduardo d12059e
fix: playground not affect components
cesaroeduardo e291ece
Merge remote-tracking branch 'origin/no-issue-fix-semantic-tokens' in…
cesaroeduardo 77c4c68
fix: theme + ds docs
cesaroeduardo d26d48a
chore: deleted ds-docs plan
cesaroeduardo 63011cb
chore: gitignore + readme update
cesaroeduardo d6af43f
chore(ds-docs): stop tracking generated and search index files
cesaroeduardo 4b64c3b
chore: update homepage docs
cesaroeduardo 5785d5a
chore: ordenação semantic tokens
cesaroeduardo e2300ff
fix: update pnpm
cesaroeduardo aa4bc65
fix: component coverage check
cesaroeduardo 5fa51f3
fix: coverage ignore docs components
cesaroeduardo 90cb3d3
chore: point coverage test to correct component folder
cesaroeduardo 1deb852
fix: build icons in docs
cesaroeduardo 221208e
fix: github alerts
cesaroeduardo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,232 @@ | ||
| name: Documentation CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - develop | ||
| paths: | ||
| - 'apps/ds-docs/**' | ||
| - 'packages/**' | ||
| - '.github/workflows/docs.yml' | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - develop | ||
| paths: | ||
| - 'apps/ds-docs/**' | ||
| - 'packages/**' | ||
| - '.github/workflows/docs.yml' | ||
|
|
||
| env: | ||
| NODE_VERSION: '20' | ||
| PNPM_VERSION: '8' | ||
|
|
||
| # Minimal permissions for CI (read-only checkout; no write to repo) | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Documentation Lint | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: ${{ env.PNPM_VERSION }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Run documentation lint | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run lint || echo "Lint script not defined, skipping..." | ||
|
|
||
| - name: Validate frontmatter | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run lint || true | ||
|
|
||
| link-check: | ||
| name: Link Validation | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: ${{ env.PNPM_VERSION }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Check internal links | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run lint:links || true | ||
|
|
||
| component-docs: | ||
|
||
| name: Component Documentation Coverage | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: ${{ env.PNPM_VERSION }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Check component documentation coverage | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run lint:coverage | ||
|
|
||
| api-extraction: | ||
|
||
| name: API Extraction | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: ${{ env.PNPM_VERSION }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Extract component APIs | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run build:api || true | ||
|
|
||
| - name: Upload API artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: component-api | ||
| path: apps/ds-docs/src/generated/component-api/ | ||
| retention-days: 7 | ||
|
|
||
| build: | ||
|
||
| name: Build Documentation | ||
| runs-on: ubuntu-latest | ||
| needs: [lint, link-check, component-docs] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v2 | ||
| with: | ||
| version: ${{ env.PNPM_VERSION }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build @aziontech/icons | ||
| run: pnpm --filter @aziontech/icons run build | ||
|
|
||
| - name: Build search index | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run build:search | ||
|
|
||
| - name: Build documentation | ||
| run: | | ||
| cd apps/ds-docs | ||
| pnpm run build | ||
| env: | ||
| ASTRO_TELEMETRY_DISABLED: true | ||
|
|
||
| - name: Upload build artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: docs-build | ||
| path: apps/ds-docs/dist/ | ||
| retention-days: 7 | ||
|
|
||
| preview: | ||
|
||
| name: Deploy Preview | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| if: github.event_name == 'pull_request' | ||
|
|
||
| steps: | ||
| - name: Download build artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: docs-build | ||
| path: dist | ||
|
|
||
| - name: Deploy to preview | ||
| run: | | ||
| echo "Preview deployment would happen here" | ||
| echo "Build artifacts are ready at: dist/" | ||
| # In a real setup, this would deploy to a preview environment | ||
| # such as Vercel, Netlify, or Cloudflare Pages | ||
|
|
||
| # Summary job that requires all checks to pass | ||
| docs-check: | ||
|
||
| name: Documentation Check Summary | ||
| runs-on: ubuntu-latest | ||
| needs: [lint, link-check, component-docs, build] | ||
| if: always() | ||
|
|
||
| steps: | ||
| - name: Check job status | ||
| run: | | ||
| if [[ "${{ needs.lint.result }}" == "failure" ]] || \ | ||
| [[ "${{ needs.link-check.result }}" == "failure" ]] || \ | ||
| [[ "${{ needs.component-docs.result }}" == "failure" ]] || \ | ||
| [[ "${{ needs.build.result }}" == "failure" ]]; then | ||
| echo "❌ Documentation checks failed" | ||
| exit 1 | ||
| fi | ||
| echo "✅ All documentation checks passed" | ||
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.