← Winnitude! Search  ·  Reader Mode (1447 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 95 LINKS

GitHub - phcode-dev/docs: Phoenix documentation docs.phcode.dev

Repository navigation

docs
Public

About

Phoenix documentation docs.phcode.dev

docs.phcode.dev/

Resources

Readme CC-BY-4.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

5 stars

Watchers

2 watching

Forks

11 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


753 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
api api    
blog blog    
config/ search config/ search    
docs docs    
plugins plugins    
scripts scripts    
src src    
static static    
vendor/ docsearch-react vendor/ docsearch-react    
.gitignore .gitignore    
.markdownlint.json .markdownlint.json    
.phcode.json .phcode.json    
AGENTS.md AGENTS.md    
CNAME CNAME    
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md    
CONTRIBUTING.md CONTRIBUTING.md    
CREDITS.md CREDITS.md    
LICENSE LICENSE    
README.md README.md    
SECURITY.md SECURITY.md    
app-links.js app-links.js    
babel.config.js babel.config.js    
docusaurus.config.js docusaurus.config.js    
expand-docs.js expand-docs.js    
package-lock.json package-lock.json    
package.json package.json    
renovate.json renovate.json    
sidebars.js sidebars.js    

Repository files navigation

Welcome to Phoenix Documentation

This repository hosts the code for https://docs.phcode.dev/ . Please contribute to this repo for helping the Phoenix/Brackets community.

For contributors and AI agents, start with the documentation authoring guide . It covers planning, product verification, writing, media, and release review.

License

CC BY License Copyright (c) 2022-present, core.ai

Website

This website is built using Docusaurus , a modern static website generator.

Installation

$ npm install

Local Development

$ npm run start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Both npm run build and npm run buildLocal finish with npm run verify:links. This JavaScript check scans the generated HTML for links to missing pages, downloads, images, scripts, video files, captions, canonical pages, and redirect destinations. It includes full https://docs.phcode.dev/... URLs and prints the source HTML file and broken link before failing the build. Both CI workflows run it through the build command, so a failure stops deployment.

The check uses the build files without contacting the live site. It checks destination paths; Docusaurus and the tutorial checks handle section anchors. External site availability and temporary server errors still need live monitoring. Run npm run test:links to test the checker. After a direct npm run docusaurus -- build, run npm run verify:links separately.

Search and Ask AI checks

Run npm run test:search before releasing search changes. The JavaScript tests cover edition-specific links, crawler extraction, and the maintained DocSearch package. Normal builds also run npm run verify:search to check the search page's robots tag and tab metadata in the generated HTML. Run it separately after a direct npm run docusaurus -- build.

See search configuration for the supported Algolia settings, agent instructions, deployment and recrawl order, and query checks. The reviewed DocSearch source dependency has its own provenance, rebuild instructions, and removal criteria .

Tutorial release checks

Before adding or changing a video, read the video contributor notes for the recording, article, watch-page, and metadata workflow.

Run these checks before releasing tutorial or blog-media changes. They use JavaScript and require Node.js, Git, and the dependencies installed by npm ci.

npm run test:tutorials
npm run package:tutorials
npm run build
npm run verify:tutorials

The checks cover tutorial links and anchors, image descriptions, video metadata and captions, the watch pages and their video sitemap entries, AI documentation indexes, and the contents of the practice ZIPs. npm run build refreshes the API documentation from its source repository. If the API files are already generated locally, npm run docusaurus -- build builds the current checkout without refreshing them.

To preview the built site, run:

npm run serve -- --port 8208

Deployment

  1. Push your changes to a topic branch and open a pull request into main.
  2. Once the required checks and reviews pass, use Rebase and merge on the pull request.
  3. Run git fetch origin main prod. If production has commits missing from main, bring them through a pull request first. From a local release branch based on origin/prod, run git rebase origin/main and confirm that git rev-parse HEAD origin/main prints the same commit twice.
  4. Run git push origin HEAD:prod to fast-forward production and check the deployment in GitHub Actions.

The production workflow in .github/workflows/gh-pages-deploy.yml deploys reviewed changes pushed to prod. It runs the tutorial checks before publishing to gh-pages. Deployments run one at a time.

Video first-publication dates are assigned automatically during a deployment build. The workflow restores tutorials/video-publications.json from the previous deployment, assigns dates to new videos, and includes the resulting manifest in the published site. Later releases preserve those original dates. Local preview builds leave unpublished dates unset; no manual edit to the guide is needed before release.

Keep tutorials/video-publications.json when restoring or moving the published site. If an already published video has lost its recorded date, deployment stops until the original date is restored. An unavailable deployment history also stops the release. The final verify:tutorials -- --release check requires each video's page metadata to match its saved publication date.

About

Phoenix documentation docs.phcode.dev

docs.phcode.dev/

Resources

Readme CC-BY-4.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity Custom properties

Stars

5 stars

Watchers

2 watching

Forks

11 forks Report repository

Releases

Packages

Used by

Contributors

Languages

Generated from thuliteio/doks