Skip to content

Docs

Docs #15101

Workflow file for this run

name: Docs
on:
schedule:
- cron: '0 0 * * */1'
push:
branches:
- main
jobs:
rustdoc:
name: Rustdoc
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
repository: 'swc-project/swc'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Create rustdoc
run: cargo doc --all --features ecma_plugin_transform --features ecma_loader --features ecma_utils --features ecma_quote --features ecma_visit --features ecma_transforms --features __testing_transform --features css_compat --features css_codegen --features css_minifier --features css_prefixer --features css_parser --features common_tty --no-deps -Zunstable-options -Zrustdoc-scrape-examples
- name: Create CNAME
run: |
echo 'rustdoc.swc.rs' > target/doc/CNAME
- name: Deploy
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: target/doc
clean: true
git-config-email: [email protected]
repository-name: swc-project/rustdoc
commit-message: "Update"
single-commit: true