Skip to content
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

Material theme beta #973

Merged
merged 22 commits into from
Dec 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
ee5aaf6
Add basic material theme config.
grugnog Dec 7, 2022
66985a5
Switch workflow to use lint action, rather than latest container.
grugnog Dec 8, 2022
b1a2ab9
Update check name and add log message.
grugnog Dec 8, 2022
33341e6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 8, 2022
2542fc7
Add missing remark command.
grugnog Dec 8, 2022
07d2a69
Setting the navigation features for tabs and expansion.
dmundra Dec 13, 2022
f6f745a
Switching handbook to guidebook. Adjusting styles (#963)
dmundra Dec 19, 2022
5f71b1f
Added CA logo and removed navigation and toc from index page. (#968)
dmundra Dec 19, 2022
e1f0c95
Added jquery for the read the docs flyout menu.
dmundra Dec 19, 2022
d6828b4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 19, 2022
870a501
Updated CSS for rst-versions.
dmundra Dec 19, 2022
a48c84a
Commenting out nav expand and adding nav indexes.
dmundra Dec 21, 2022
023f723
Material theme beta nav (#974)
ContentBrewmaster Dec 22, 2022
1b8a510
Added comments and adjusteds indentation of the menu items (switched …
dmundra Dec 22, 2022
778253d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Dec 22, 2022
0859999
Deleting nav items for pages that been deleted. Moved some pages around.
dmundra Dec 23, 2022
d7996a4
Merge branch 'master' into material-beta
dmundra Dec 23, 2022
156ae34
Move as many files as possible out of the git root directory.
grugnog Dec 23, 2022
9db1a85
Add trailing slash to try and convince Github this is a path.
grugnog Dec 23, 2022
0b1b13a
Try adding leading . also.
grugnog Dec 23, 2022
3cced3d
Merge branch 'master' into material-beta
dmundra Dec 27, 2022
dd65cdf
Updated leave request menu item.
dmundra Dec 27, 2022
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
2 changes: 0 additions & 2 deletions .codespellrc

This file was deleted.

5 changes: 0 additions & 5 deletions .gitignore → .config/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
.*.swp
.DS_Store
.bundle/
*.html
.jekyll*
.sass-cache/
_site/
node_modules
output.log
site
36 changes: 36 additions & 0 deletions .config/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This installs reviewdoc, mkdocs and remark for convenient usage in pre-commit hooks and Github actions.

FROM node:16-alpine

ENV REVIEWDOG_VERSION=v0.13.1

RUN \
apk add --update \
ca-certificates \
bash \
git \
openssh \
python3 \
python3-dev \
py3-pip \
build-base

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin/ ${REVIEWDOG_VERSION}

# Install mkdocs and dependencies.
COPY requirements.txt /usr/src/
RUN pip3 install -r /usr/src/requirements.txt

# Install remark and dependencies.
COPY remark/* /usr/src/
RUN yarn install --production --non-interactive --cwd /usr/src && \
yarn cache clean --force --cwd /usr/src \
mkdir /src
ENV PATH="/usr/src/node_modules/.bin:${PATH}"

COPY scripts/*.sh /usr/bin/
WORKDIR /src

ENTRYPOINT ["/bin/bash"]
CMD []
16 changes: 16 additions & 0 deletions .config/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Run repo specific lint tools"
description: "Runs repo specific lint tools on pull requests for documentation projects."
author: "civicactions"
inputs:
github_token:
description: "GITHUB_TOKEN."
required: true
default: ${{ github.token }}
command:
description: "Command to run"
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.command }}
File renamed without changes.
2 changes: 2 additions & 0 deletions .config/codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
ignore-words=.config/codespell-ignore
184 changes: 184 additions & 0 deletions .config/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
site_name: CivicActions Guidebook - Beta
repo_url: https://github.com/CivicActions/handbook/
site_url: https://handbook.civicactions.com/en/latest/
docs_dir: ../docs
theme:
name: material
features:
- navigation.tabs
- navigation.indexes
#- navigation.expand
favicon: img/favicon.ico
logo: img/ca-logo-white.svg
palette:
# Palette toggle for light mode
- scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
markdown_extensions:
- toc:
title: On this page
plugins:
- search
extra_css:
- css/extra.css
extra_javascript:
#- js/extra.js
# Read the Docs requires JQuery for its JavaScript code to inject the flyout
# menu. Material for MkDocs does not come with JQuery.
- "https://code.jquery.com/jquery-3.6.2.min.js"
# Navigation of the entire site is managed below, both the main menu items and their child pages.
nav:
- Home: index.md
- About CivicActions:
- Mission and values: 020-about-us/mission-values.md
- Culture: 020-about-us/culture.md
- Diversity, Equity, Inclusion, and Accessibility (DEIA):
- DEIA at CivicActions: 050-how-we-work/diversity-equity-inclusion/purpose.md
- Defining DEIA: 050-how-we-work/diversity-equity-inclusion/defining-dei.md
- Affinity channels: 050-how-we-work/diversity-equity-inclusion/affinity-channels.md
- DEIA - Get involved: 050-how-we-work/diversity-equity-inclusion/deia-get-involved.md
- Resources: 050-how-we-work/diversity-equity-inclusion/resources.md
- Our structure:
- Departments, projects, practice areas, and pods: 050-how-we-work/organization.md
- Organizational structure: 020-about-us/org-structure.md
- Management team: 050-how-we-work/management-ops.md
- Background and history: 020-about-us/background-and-history.md
- Our annual summit: 030-policies/annual-retreat.md
- Employee benefits:
- Benefits policy (US employees): 040-employee-handbook-us/benefits-and-holidays.md
- Compensation (US employees): 040-employee-handbook-us/compensation.md
- Technology stipend policy (US employees): 040-employee-handbook-us/tech-stipend.md
- Benefits policy (Canadian employees): 045-employee-handbook-ca/benefits-and-holidays.md
- Technology stipend (Canadian employees): 045-employee-handbook-ca/tech-stipend.md
- Professional development: 030-policies/prodev.md
- Employee referral bonus program: 030-policies/employee-referral-bonus.md
- On-call stipends: 030-policies/on-call-stipend.md
- Company policies:
- Expenses: 030-policies/expenses.md
- Travel expenses and billing: 030-policies/travel-101.md
- Timesheets (Unanet): 050-how-we-work/tools/unanet.md
- Security Policy: 030-policies/security.md
- Employment policies (US employees):
- Employment: 040-employee-handbook-us/employment.md
- Introductory period: 040-employee-handbook-us/introductory-period.md
- Anti-harassment: 040-employee-handbook-us/anti-harassment-policies.md
- Covid 19 safety: 040-employee-handbook-us/covid19safety.md
- Code of conduct: 030-policies/code-of-conduct.md
- Workplace guidelines: 030-policies/workplace-guidelines.md
- Annual performance review: 030-policies/annual-review-process.md
- Performance management: 030-policies/performance-management.md
- Leaving Civicactions: 030-policies/leaving-civicactions.md
- Health, Safety and Security Policy: 030-policies/health-safety-security.md
- New hire orientation:
- Welcome to CivicActions!: 010-welcome-to-civicactions/welcome.md
- Buddy program: 010-welcome-to-civicactions/training/buddy-program.md
- Elevator pitch: 020-about-us/elevator-pitch.md
- Free and open source software (FOSS): 010-welcome-to-civicactions/training/intro-open-source.md
- Meetings and meeting tools: 010-welcome-to-civicactions/training/meetings-and-meeting-tools.md
- People planning: 010-welcome-to-civicactions/training/people-planning.md
- Security for everyone: 010-welcome-to-civicactions/training/security-training.md
- Training resources: 050-how-we-work/training-resources.md
- Video call best practices: 050-how-we-work/video-call-best-practices.md
- Virtual workplace basics: 050-how-we-work/virtual-workplace-basics.md
- Common practices and tools:
- Agile:
- Agile overview: 050-how-we-work/agile-overview.md
- Agile practice: 050-how-we-work/agile-practices/README.md
- Backlog refinement: 050-how-we-work/agile-practices/backlog-refinement.md
- Daily scrum calls: 050-how-we-work/agile-practices/daily-scrum-calls.md
- How to create tickets: 050-how-we-work/tools/tickets-cards.md
- Sprint cycle: 050-how-we-work/agile-practices/sprint-cycle.md
- Sprint demo: 050-how-we-work/agile-practices/sprint-demo.md
- Sprint planning meetings: 050-how-we-work/agile-practices/sprint-planning-meetings.md
- Sprint retrospectives: 050-how-we-work/agile-practices/sprint-retrospectives.md
- Balance scores: 050-how-we-work/balance-scores.md
- Gold Star Program: 050-how-we-work/gold-star-program.md
- Security awareness and tools:
- Awareness and tools: 100-security/awareness.md
- Setting up and using Yubikey:
- 100-security/yubikey/README.md
- Yubikey and Linux: 100-security/yubikey/linux.md
- Yubikey and Mac OS: 100-security/yubikey/macosx.md
- Drupal RMF support: 100-security/drupal-rmf-support.md
- Encryption: 100-security/encryption.md
- Incidents:
- Contingency plan: 100-security/contingency-plan.md
- Incident response checklist: 100-security/incident-response-checklist.md
- Incident response plan: 100-security/incident-response-plan.md
- Security incidents: 100-security/incidents.md
- Skills Base: 050-how-we-work/tools/skills-base.md
- Software and support:
- Internal technical support: 050-how-we-work/support.md
- Bookmarks: 050-how-we-work/bookmarks.md
- Email: 050-how-we-work/tools/email.md
- General contacts and listservs: 020-about-us/general-contacts-and-listservs.md
- Github: 050-how-we-work/tools/github.md
- Google Calendar: 050-how-we-work/tools/google-calendar.md
- Google Docs: 050-how-we-work/tools/google-docs.md
- Google Meet: 050-how-we-work/tools/google-hangouts.md
- Jira: 050-how-we-work/tools/jira.md
- Markdown: 050-how-we-work/tools/markdown.md
- Slack: 050-how-we-work/tools/slack.md
- Text editors: 050-how-we-work/tools/text-editors.md
- Trello: 050-how-we-work/tools/trello.md
- Zoom: 050-how-we-work/tools/zoom.md
- Telephone use: 050-how-we-work/tools/telephone.md
- Practice areas:
- About practice areas: 050-how-we-work/practice-areas/README.md
- Accessibility practice area: 050-how-we-work/practice-areas/accessibility-practice-area.md
- Design and research:
- Audience and outcomes guide: 110-ux/services/research/audiences-and-outcomes-guide.md
- Content audit guide: 110-ux/services/research/content-audit-guide.md
- Content modeling guide: 110-ux/services/design/content-modeling-guide.md
- Stakeholder interviews guide: 110-ux/services/research/stakeholder-interviews-guide.md
- Story mapping guide: 110-ux/services/research/story-mapping-guide.md
- Usability testing guide: 110-ux/services/research/usability-testing-guide.md
- User personas guide: 110-ux/services/research/user-personas-guide.md
- Engineering:
- Engineering calls: 060-engineering/README.md
- Accessibility: 060-engineering/accessibility.md
- Drupal practice area: 050-how-we-work/practice-areas/drupal-practice-area.md
- Drupal - contributed vs. custom development: 060-engineering/most-important-decision-in-developing-a-drupal-site-contributed-vs-custom-development.md
- Drupal developer tips for getting the most out of open source: 060-engineering/drupal-developer-tips-for-getting-the-most-out-of-open-source.md
- Git: 060-engineering/git.md
- Security and compliance: 060-engineering/security-compliance.md
- Tech Lead (TL) project role description: 060-engineering/tech-lead.md
- Help desk:
- Help desk support: 120-help-desk/helpdesk.md
- Project support and Agile: 120-help-desk/help-desk-agile.md
- Help desk working practices: 120-help-desk/working-practices.md
- Project management:
- Project manager role: 070-project-management/pm-role.md
- Guidelines for starting a new project: 070-project-management/starting-new-project.md
- Invoicing: 070-project-management/invoicing.md
- Onboarding a new project team member: 070-project-management/onboarding-new-project-team-member.md
- When your project gets a contractual Modification (MOD) or Extension: 070-project-management/mods-and-extentions.md
- Tracking contract expirations and renewals: 070-project-management/contract-expiration-tracking.md
- Tracking contractual requirements: 070-project-management/contractual-requirements.md
- Conflict resolution and growth mindset: 070-project-management/growth-mindset.md
- Leave Requests and Stepping Away: 070-project-management/leave-requests-and-stepping-away.md
- Having the hard conversations: 070-project-management/hard-conversations.md
- Listserv setup: 070-project-management/listserv-setup.md
- Offboarding a team member from a project: 070-project-management/project-offboarding.md
- Planning travel and onsite meetings: 070-project-management/planning-onsite-meetings.md
- Project calendar: 070-project-management/project-calendar.md
- Project folder structure: 070-project-management/project-folder.md
- Project Manager templates: 070-project-management/templates.md
- Project Manager training: 070-project-management/pm-training.md
- Project Management Unanet Tasks and Training Material: 070-project-management/pm-unanet-tasks.md
- Project Management Checklists: 070-project-management/project-management-checklists.md
- About this guidebook:
- How and when to contribute to the guidebook: 000-contributing/README.md
- Git workflow: 000-contributing/git-workflow.md
- GitHub actions: 000-contributing/github-actions.md
- Guidebook governance: 000-contributing/docs-governance.md
- Guidebook writing style: 000-contributing/writing-style-guide.md
- Markdown: 000-contributing/markdown.md
- License: LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# These fix common "fancy" characters when pasting from word processors.
- search: "´"
replacement: "'"
- search: "‘"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions .config/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mkdocs_material==8.5.11
59 changes: 59 additions & 0 deletions .config/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#
# This file is autogenerated by pip-compile with python 3.10
# To update, run:
#
# pip-compile requirements.in
#
certifi==2022.12.7
# via requests
charset-normalizer==2.1.1
# via requests
click==8.1.3
# via mkdocs
ghp-import==2.1.0
# via mkdocs
idna==3.4
# via requests
jinja2==3.1.2
# via
# mkdocs
# mkdocs-material
markdown==3.3.7
# via
# mkdocs
# mkdocs-material
# pymdown-extensions
markupsafe==2.1.1
# via jinja2
mergedeep==1.3.4
# via mkdocs
mkdocs==1.4.2
# via mkdocs-material
mkdocs-material==8.5.11
# via -r requirements.in
mkdocs-material-extensions==1.1.1
# via mkdocs-material
packaging==21.3
# via mkdocs
pygments==2.13.0
# via mkdocs-material
pymdown-extensions==9.9
# via mkdocs-material
pyparsing==3.0.9
# via packaging
python-dateutil==2.8.2
# via ghp-import
pyyaml==6.0
# via
# mkdocs
# pyyaml-env-tag
pyyaml-env-tag==0.1
# via mkdocs
requests==2.28.1
# via mkdocs-material
six==1.16.0
# via python-dateutil
urllib3==1.26.13
# via requests
watchdog==2.2.0
# via mkdocs
3 changes: 2 additions & 1 deletion lint/mkdocs.sh → .config/scripts/mkdocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ set -euo pipefail
# Exclude info log messages for more concise output.

tmp_dir=$(mktemp -d -t mkdocs-XXXXXX)
/usr/bin/mkdocs build --strict --site-dir "${tmp_dir}" 2>&1 | { grep -v '^INFO' || true; }
/usr/bin/mkdocs build --config-file=.config/mkdocs.yml --strict --site-dir "${tmp_dir}" 2>&1 | { grep -v '^INFO' || true; }
rm -rf "${tmp_dir}"
echo "mkdocs build successful"
4 changes: 2 additions & 2 deletions lint/remark.sh → .config/scripts/remark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ MASTER=master
if [[ -z ${LOCAL_MASTER} ]]; then
MASTER=origin/master
fi
# Only check paths changed on branch to avoid excessive output.
export REMARK_PATHS=$(git diff --diff-filter=AM --name-only "${MASTER}" | grep '^docs')
# Only check paths changed on branch to avoid excessive output. Exclude CSS.
export REMARK_PATHS=$(git diff --diff-filter=AM --name-only "${MASTER}" ':!docs/css/extra.css' | grep '^docs')

if [[ -n "${INPUT_GITHUB_TOKEN:-}" ]]; then
export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
- uses: codespell-project/actions-codespell@master
with:
path: docs
ignore_words_file: .codespell-ignore
config: .config/codespellrc
12 changes: 7 additions & 5 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run mkdocs
uses: docker://civicactions/handbook-lint:latest
- uses: actions/checkout@v1
with:
entrypoint: /bin/bash
args: mkdocs.sh
fetch-depth: 0
- name: Run mkdocs to check build.
uses: ./.config/
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
command: mkdocs.sh
3 changes: 2 additions & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
with:
fetch-depth: 0
- name: Run remark-lint with reviewdog for documentation projects.
uses: ./lint
uses: ./.config/
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
command: remark.sh
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ repos:
hooks:
- id: search-and-replace
files: docs
args:
- "--config=.config/pre-commit-search-and-replace.yaml"
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
files: docs
args:
- "--config=.config/codespellrc"
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
Expand Down
Loading