Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 3 additions & 107 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,111 +1,7 @@
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/configuration-reference
version: 2.1

# Settings common to each job
job_defaults: &job_defaults
working_directory: ~/angular-docs-es
docker:
- image: cimg/node:lts-browsers

orbs:
node: circleci/node@5.2.0
build-tools: circleci/build-tools@3.0.0
browser-tools: circleci/browser-tools@1.4.8

commands:
# Command for checking out the source code from GitHub. This also ensures that the source code
# can be merged to the main branch without conflicts.
checkout_and_rebase:
description: Checkout and verify clean merge with main
steps:
- checkout
- run:
name: Set git user.name and user.email for rebase.
# User is required for rebase.
command: |
git config user.name "Admin"
git config user.email "admin@angular.lat"
- build-tools/merge-with-parent:
parent: main
setup:
description: 'Set up executor'
steps:
- attach_workspace:
at: ~/
setup_firebase_auth:
description: 'Set up Firebase authentication'
steps:
- run:
name: Create a google_service_account.json
command: |
echo $GSA_KEY > $GOOGLE_APPLICATION_CREDENTIALS

# ----------------------------------
# Job definitions.
# ----------------------------------

jobs:
# ----------------------------------
# initialize job
# ----------------------------------
initialize:
<<: *job_defaults
steps:
- checkout_and_rebase
- node/install-packages
- persist_to_workspace:
root: ~/
paths:
- angular-docs-es
# -----------------------------------
# Build job.
# -----------------------------------
build:
<<: *job_defaults
steps:
- setup
- checkout
- run:
name: Build project in CI mode (pre build)
command: npm run build:ci
- run:
name: Installing packages
working_directory: ./build
command: yarn install
- run:
name: Build adev-es docs
working_directory: ./build
command: yarn bazel build //adev:build --fast_adev --local_ram_resources="HOST_RAM*.90" --jobs=1
- persist_to_workspace:
root: ~/
paths:
- angular-docs-es/build/dist/bin/adev/build/browser

# -----------------------------------
# Firebase deploy to staging job.
# -----------------------------------
firebase-deploy-staging:
<<: *job_defaults
docker:
- image: circleci/node:12-browsers
steps:
- setup
- setup_firebase_auth
- run:
name: 'Deploy Main Branch to Firebase Hosting'
command: |
npm run deploy:staging

workflows:
build-workflow:
jobs:
- initialize
- build:
requires:
- initialize
- firebase-deploy-staging:
filters:
branches:
only:
- main
requires:
- build
- run: echo 'No checks.'
49 changes: 49 additions & 0 deletions .github/workflows/adev-staging-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build adev and deploy to staging

on:
push:
branches:
- main

env:
BAZEL_REPO_CACHE_PATH: '~/.cache/bazel_repo_cache'

jobs:
adev-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Setup Node JS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
bazelrc: |
# Print all the options that apply to the build.
# This helps us diagnose which options override others
# (e.g. /etc/bazel.bazelrc vs. tools/bazel.rc)
build --announce_rc

# More details on failures
build --verbose_failures=true

# CI supports colors but Bazel does not detect it.
common --color=yes
- name: Install Dependencies
run: npm ci
- name: Build Docs
run: npm run build
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.ANGULAR_DOCS_ES_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
projectId: angular-hispano-staging
channelId: live
target: staging
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI (Pull Request)

on: [pull_request]

permissions:
contents: read

jobs:
build-adev:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Setup Node JS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
with:
bazelisk-cache: true
disk-cache: true
repository-cache: true
- name: Install Dependencies
run: npm ci
- name: Build Docs
run: npm run build
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18.2
20.19.2
3 changes: 2 additions & 1 deletion adev-es/src/app/core/constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export const GITHUB = 'https://github.com/angular-hispano/angular-docs-es';
export const X = 'https://x.com/AngularHispana';
export const DISCORD = 'https://discord.com/invite/4cWb6SKUcb';
export const MEDIUM = '';
export const YOUTUBE = '';
export const YOUTUBE = '';
export const BLUESKY = '';
120 changes: 120 additions & 0 deletions adev-es/src/app/core/layout/footer/footer.component.en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<div class="adev-footer-container">
<div class="adev-footer-columns">
<div>
<h2>Social Media</h2>
<ul>
<li>
<a [href]="MEDIUM" title="Angular blog">Blog</a>
</li>
<li>
<a [href]="X" title="X (formerly Twitter)">X (formerly Twitter)</a>
</li>
<li>
<a [href]="BLUESKY" title="Bluesky">Bluesky</a>
</li>
<li>
<a [href]="YOUTUBE" title="YouTube">YouTube</a>
</li>
<li>
<a
href="https://discord.gg/angular"
title="Join the discussions at Angular Community Discord server."
>
Discord
</a>
</li>
<li>
<a [href]="GITHUB" title="GitHub">GitHub</a>
</li>
<li>
<a
href="https://stackoverflow.com/questions/tagged/angular"
title="Stack Overflow: where the community answers your technical Angular questions."
>
Stack Overflow
</a>
</li>
</ul>
</div>
<div>
<h2>Community</h2>
<ul>
<li>
<a
href="https://github.com/angular/angular/blob/main/CONTRIBUTING.md"
title="Contribute to Angular"
>
Contribute
</a>
</li>
<li>
<a
href="https://github.com/angular/code-of-conduct/blob/main/CODE_OF_CONDUCT.md"
title="Treating each other with respect."
>
Code of Conduct
</a>
</li>
<li>
<a
href="https://github.com/angular/angular/issues"
title="Post issues and suggestions on github."
>
Report Issues
</a>
</li>
<li>
<a
href="https://devlibrary.withgoogle.com/products/angular?sort=updated"
title="Google's DevLibrary"
>
Google's DevLibrary
</a>
</li>
<li>
<a
href="https://developers.google.com/community/experts/directory?specialization=angular"
title="Angular Google Developer Experts"
>
Angular Google Developer Experts
</a>
</li>
</ul>
</div>
<div>
<h2>Resources</h2>
<ul>
<li>
<a routerLink="/press-kit" title="Press contacts, logos, and branding.">Press Kit</a>
</li>
<li>
<a routerLink="/roadmap" title="Roadmap">Roadmap</a>
</li>
</ul>
</div>
<div>
<h2>Languages</h2>
<ul>
<li>
<a href="https://angular.cn/" title="简体中文版">简体中文版</a>
</li>
<li>
<a href="https://dev.angular.tw/" title="正體中文版">正體中文版</a>
</li>
<li>
<a href="https://angular.jp/" title="日本語版">日本語版</a>
</li>
<li>
<a href="https://angular.kr/" title="한국어">한국어</a>
</li>
</ul>
</div>
</div>
<p class="docs-license">
Super-powered by Google ©2010-2025. Code licensed under an
<a routerLink="/license" title="License text">MIT-style License</a>
. Documentation licensed under
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>
.
</p>
</div>
Loading