Skip to content

Commit

Permalink
Remove legacy docsite (#2193)
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron authored Aug 8, 2023
1 parent 6692941 commit db2964c
Show file tree
Hide file tree
Showing 117 changed files with 23 additions and 56,176 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ node_modules/
pkg/
test/
!test/previews/
docs/
vendor/bundle
14 changes: 0 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,6 @@ updates:
- "npm"
allow:
- dependency-type: "production"
- package-ecosystem: "npm"
directory: "/docs"
schedule:
interval: "monthly"
labels:
- "dependencies"
- "skip changeset"
- "npm"
allow:
- dependency-type: "production"
ignore:
- dependency-name: "gatsby"
- dependency-name: "react"
- dependency-name: "react-dom"
- package-ecosystem: "npm"
directory: "/demo"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/release_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Please ensure these items are checked before merging.
### 🔎 Smoke test

- [ ] All CI checks pass
- [ ] Docs and Lookbook open in a browser
- [ ] Lookbook opens in a browser
- [ ] Successful integration test with GitHub.com as a primary consumer of Primer View Components
- [ ] Install the npm release candidate in `npm-workspaces/primer/`
- [ ] Use `bin/vendor-gem` to update `primer_view_components` gem
Expand Down
95 changes: 0 additions & 95 deletions .github/workflows/docs-production-deploy.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,60 +105,3 @@ jobs:
dockerRegistryUsername="GitHubActions"
dockerRegistryPassword="${{ secrets.AZURE_ACR_PASSWORD }}"
railsMasterKey="${{ secrets.RAILS_MASTER_KEY }}"
docs_build:
if: ${{ github.event.pull_request.head.repo.full_name == 'primer/view_components' }}
name: Docs Build
runs-on: ubuntu-latest
steps:
- name: Checkout default branch
uses: actions/checkout@v3
with:
version: 14

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: |
package-lock.json
docs/package-lock.json
- name: Install dependencies
run: npm ci && cd docs && npm ci && cd ..

- name: Generate static files
run: bundle exec rake utilities:build docs:build static:dump

- name: Build
run: npm run build:docs:preview

- name: Archive build output
run: 'tar --dereference --directory docs/public -cvf artifact.tar .'

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: artifact.tar
docs_deploy:
name: Docs Deploy
runs-on: ubuntu-latest
needs: docs_build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
outputs:
deployment_url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
preview: true
1 change: 0 additions & 1 deletion .github/workflows/static-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
bundle exec rake utilities:build
bundle exec rake docs:build
bundle exec rake static:dump
bundle exec rake docs:build_lookbook_pages
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generating static files
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
demo/package-lock.json
- name: Build
run: |
bundle exec rake docs:preview
npm ci
cd demo && npm ci
- name: Test
Expand Down
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,10 @@ demo/app/assets/stylesheets/primer*
# Generated by lib/tasks/docs.rake
/.yardoc
/doc
previews/docs/
test/snapshots/
test/snapshots/docs/
demo/test/snapshots/
previews/pages/*.md.erb
previews/pages/forms/inputs/*.md.erb
docs/content/adr/
docs/content/components/

# Docs site Gatsby build
docs/.cache/
docs/public/
docs/static/

# Ignore nested node_modules, we commit the root node_modules
**/node_modules/
Expand Down
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ AllCops:
- "demo/**/*"
- "**/vendor/**/*"
- "**/node_modules/**/*"
- "test/previews/docs/**/*"
TargetRubyVersion: 2.6

Style/ClassAndModuleChildren:
Expand Down
7 changes: 0 additions & 7 deletions app/components/primer/alpha/action_bar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ class ActionBar < Primer::Component
}
}

# @example Default
#
# <%= render(Primer::Alpha::ActionBar.new) do |component| %>
# <% component.with_item_icon_button(icon: :search, label: "Search")
# <% component.with_item_icon_button(icon: :pencil, label: "Edit") %>
# <% end %>
#
# @param size [Symbol] <%= one_of(Primer::Alpha::ActionBar::SIZE_OPTIONS) %>
# @param overflow_menu [Boolean] Whether to render the overflow menu.
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
Expand Down
Loading

0 comments on commit db2964c

Please sign in to comment.