Skip to content

Commit

Permalink
🚮 Remove broken and unused reactive roles (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Jan 9, 2025
1 parent 6f77bda commit 479db78
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-bats-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"myst-cli": patch
---

Remove broken and unused reactive roles.
4 changes: 1 addition & 3 deletions docs/directives.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { cardDirective } from 'myst-ext-card';
import { gridDirectives } from 'myst-ext-grid';
import { proofDirective } from 'myst-ext-proof';
import { exerciseDirectives } from 'myst-ext-exercise';
import { reactiveDirective, reactiveRole } from 'myst-ext-reactive';
import { tabDirectives } from 'myst-ext-tabs';
import { fileError } from 'myst-common';

Expand All @@ -15,11 +14,10 @@ const allDirectives = [
...gridDirectives,
...exerciseDirectives,
...tabDirectives,
reactiveDirective,
cardDirective,
proofDirective,
];
const allRoles = [...defaultRoles, reactiveRole];
const allRoles = [...defaultRoles];

/**
* @param {import('myst-common').OptionDefinition} option
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
"myst-to-md": "^1.0.14",
"myst-to-tex": "^1.0.40",
"myst-to-typst": "^0.0.28",
"myst-transforms": "^1.3.28",
"myst-toc": "^0.1.2",
"myst-transforms": "^1.3.28",
"nanoid": "^4.0.0",
"nbtx": "^0.2.3",
"node-fetch": "^3.3.1",
Expand Down
4 changes: 1 addition & 3 deletions packages/myst-cli/src/process/myst.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { cardDirective } from 'myst-ext-card';
import { gridDirectives } from 'myst-ext-grid';
import { proofDirective } from 'myst-ext-proof';
import { exerciseDirectives } from 'myst-ext-exercise';
import { reactiveDirective, reactiveRole } from 'myst-ext-reactive';
import { tabDirectives } from 'myst-ext-tabs';
import { VFile } from 'vfile';
import type { ISession } from '../session/types.js';
Expand Down Expand Up @@ -40,7 +39,6 @@ export function parseMyst(
directives: [
cardDirective,
...gridDirectives,
reactiveDirective,
proofDirective,
...exerciseDirectives,
...tabDirectives,
Expand All @@ -49,7 +47,7 @@ export function parseMyst(
extensions: {
frontmatter: !opts?.ignoreFrontmatter,
},
roles: [reactiveRole, ...(session.plugins?.roles ?? [])],
roles: [...(session.plugins?.roles ?? [])],
vfile,
});
logMessagesFromVFile(session, vfile);
Expand Down

0 comments on commit 479db78

Please sign in to comment.