Commit Graph

9380 Commits

Author SHA1 Message Date
translatewiki.net a65a88bf6a chore: Localisation updates from https://translatewiki.net (#9750) 2026-04-23 08:42:06 -07:00
Aaron Dodson f80253f5e9 fix: Make the undo/redo API more ergonomic (#9573)
* fix: Make the undo/redo API more ergonomic

* fix: Update callers to use the new API

* chore: Fix lint
2026-04-21 11:36:48 -07:00
Greg Annandale 03443975d3 Merge pull request #9671 from grega/docs
chore(docs): migrate to Docusaurus and GitHub Pages
2026-04-16 16:16:57 +01:00
Greg Annandale 172adb5608 chore(docs): handle hoisted node_modules in Mocha tests
With npm installing packages to the root `node_modules` dir (due to now handling both packages/blockly and packages/docs), the Mocha script location is most likely to be `node_modules/mocha`, but maintains a fallback path for `packages/blockly/node_modules/mocha`.
2026-04-13 23:57:57 +01:00
Greg Annandale 50ea8768f0 chore(docs): isolate type_definitions from docs related types
Prevents auto loading of @types packages by TypeScript test config. This avoids docs @types/mdx leaking into Blockly’s type_definitions check.
2026-04-13 23:05:14 +01:00
Greg Annandale 593d877504 chore(docs): fix eslint version inconsistency between packages
Ensure that the docs package utilises the same version of eslint and prettier as the blockly package.
2026-04-13 23:05:14 +01:00
translatewiki.net 50445ed16e Localisation updates from https://translatewiki.net. (#9716) 2026-04-13 13:31:10 -07:00
Greg Annandale bb89514dda chore(docs): allow override of Pages base URL 2026-04-08 17:21:23 +01:00
Greg Annandale 7a8f646997 chore(docs): fix broken links
Primarily to reference docs, also links to the GitHub repo prior to the monorepo reshuffle.
2026-04-08 16:59:43 +01:00
Greg Annandale 059a9c741d chore(docs): replace CompareBlock component with admonition syntax 2026-04-08 16:59:43 +01:00
Greg Annandale 541c8d645a chore(docs): move CodelabCards component into own dir 2026-04-08 16:59:43 +01:00
Greg Annandale d44f955e27 chore(docs): remove index.html path requirement for all Code Labs paths/URLs 2026-04-08 16:59:43 +01:00
Greg Annandale 703991ec99 chore(docs): replace CodelabImage with standard Image component 2026-04-08 16:59:43 +01:00
Greg Annandale e0cb73d90c chore(docs): add api documenter patch 2026-04-08 16:59:42 +01:00
Greg Annandale b3fc849010 chore(docs): set Docusaurus base_url in env var 2026-04-08 16:57:39 +01:00
Greg Annandale cca97ed298 chore(docs): generate just typings for docs build Workflow
ie. no need to build the entire Blockly package, with Closure compiler, just for the docs
2026-04-08 16:57:39 +01:00
Greg Annandale 363edf083b chore(docs): fix Actions workflow to correctly build reference docs
Before generating the site, also gracefully handle the missing "references" sidebar config. Remove the, now generated, _reference.js sidebar config file
2026-04-08 16:51:59 +01:00
Greg Annandale 062c403a72 Merge branch 'main' of github.com:grega/blockly 2026-04-08 16:51:40 +01:00
Maribeth Moffatt cdcdaf3286 chore: add ability to publish prereleases (#9687)
* chore: add ability to publish prereleases

* chore: error if release version is not valid
2026-04-07 16:59:00 -04:00
lizschwab 61583fff31 fix: add group when cutting workspace comments (#9680)
* fix: add group when cutting workspace comments

* Update shortcut_items.ts

* added check for group to the cut workspace comment unit test
2026-04-07 13:50:28 -07:00
Greg Annandale 86a06d965b Merge branch 'docs' 2026-04-03 10:07:39 +01:00
Greg Annandale 6692142416 chore(docs): point docs Workflow at root-level package.json
Since we're using npm workspaces
2026-04-03 10:07:27 +01:00
Greg Annandale 2851979c11 Merge branch 'docs' 2026-04-03 09:57:23 +01:00
Heliacer 0bdae1497b feat: Add a JSON Block definition interface (#9613) 2026-04-02 14:16:54 -04:00
Maribeth Moffatt 0efc502ad5 chore: add copilot instructions for code reviews (#9676) 2026-04-02 11:44:25 -04:00
Greg Annandale 87718a53e2 chore(docs): update README docs on formatting and linting 2026-03-31 17:20:51 +01:00
Greg Annandale e8640211a6 chore(docs): run eslint on docs 2026-03-31 17:17:01 +01:00
Greg Annandale 8982178139 chore(docs): switch to eslint for mdx linting/formatting
Due to poor Prettier support

https://github.com/orgs/mdx-js/discussions/2127
2026-03-31 16:52:01 +01:00
Greg Annandale 45168a66bb chore(docs): run prettier --write on docs 2026-03-31 16:11:04 +01:00
Greg Annandale 231a9b1c8d chore(docs): add Prettier config (and ignore) for docs 2026-03-31 16:04:34 +01:00
Greg Annandale f5dcfb97ca chore(docs): CSS syntax fixes 2026-03-31 15:41:30 +01:00
Greg Annandale ec19340c06 chore(docs): remove TableHeader component, simplify tables in Markdown
Component was superfluous, we can achieve the same with regular Markdown table syntax and a very small amount of CSS
2026-03-31 15:34:40 +01:00
Greg Annandale 8839c16e0b chore(docs): move all Docusuarus-related images into single dir
Removing duplicate docs/img/ dir

Adds correct favicon

Removes unneeded default Docusaurus images/assets
2026-03-31 14:58:31 +01:00
Greg Annandale 8ae59744db chore(docs): remove ClassBlack component, add individual components instead
Adds:
- CodelabImage
- CompareBlock
- TableHeader
2026-03-31 14:48:24 +01:00
Greg Annandale 8b2ea01584 chore(docs): clarify deployment / workflow comment 2026-03-31 14:38:05 +01:00
Greg Annandale eb6f6c30e5 chore(docs): change path from /js/reference/ to /reference/
Update docs build script to reflect this, and fix some mdx generation errors

Add .gitignore to docs/reference/ to keep generated md/mdx out of version control

Add Docusaurus redirect config for /reference/js/ -> /reference/
2026-03-31 14:34:52 +01:00
Greg Annandale 50591e03e0 chore(docs): tidy Docusaurus config 2026-03-31 12:24:01 +01:00
Greg Annandale 9273512081 chore(docs): remove unused custom styles 2026-03-31 12:19:23 +01:00
Greg Annandale 350404844c chore(docs): update theme colours, remove unneeded style declarations 2026-03-31 12:12:22 +01:00
Greg Annandale ef3cea8fe4 chore(docs): allow all search engine indexing 2026-03-31 12:05:09 +01:00
Greg Annandale f6a90207fb chore(docs): fix incorrect image paths in Markdown and Image component
Both images declared through ![]() in Markdown, and using the Image component had output paths that were incorrect
2026-03-31 12:03:45 +01:00
Greg Annandale bba54681f8 chore(docs): remove unused CSS 2026-03-31 11:48:32 +01:00
Greg Annandale 15307fdc11 chore(docs): remove unneeded toc.yaml
This was leftover from the previous docs site / build process
2026-03-31 11:41:42 +01:00
Greg Annandale beb7a14e28 chore(docs): add Gulp tasks 2026-03-31 11:37:03 +01:00
Greg Annandale 4b921fbccd chore(docs): add Docusaurus supporting elements
Sidebar, index page, ToCs
2026-03-31 11:37:03 +01:00
Greg Annandale 28fe80339e chore(docs): add custom styles 2026-03-31 11:37:03 +01:00
Greg Annandale 89d608ddbb chore(docs): add Docusaurus components
For:
- Class blocks
- Codelab cards
- Homepage features
- Images
2026-03-31 11:37:03 +01:00
Greg Annandale f5d792b365 chore(docs): update docs config and paths (removing blockly/)
Also setting correct GitHub org name
2026-03-31 11:37:02 +01:00
Greg Annandale 2b0e4c856a chore(docs): GitHub Actions Workflow for deploying docs to Pages
Allows for manual Actions Workflow run for deployment, not automatic. Can be run against a given release/tag.
2026-03-31 11:36:57 +01:00
Rachel Fenichel 5dedd85872 chore: remove unused gulp helpers (#9651)
* chore: remove unused dev dependency gulp-insert

* chore: remove unused dev dependency gulp-series

* chore: remove unused dev dependency gulp-shell
2026-03-25 15:30:40 +00:00