Skip to content

Commit

Permalink
chore: remove deprecated html macros
Browse files Browse the repository at this point in the history
  • Loading branch information
viperehonchuk authored and AdriandeCita committed Jan 27, 2024
1 parent a2e7ae3 commit fa2d91c
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 101 deletions.
4 changes: 0 additions & 4 deletions lib/kuma/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import embedLiveSample from './macros/embed-live-sample';
import experimentalInline from './macros/experimental-inline';
import glossary from './macros/glossary';
import htmlElement from './macros/html-element';
import htmlattrdef from './macros/htmlattrdef';
import htmlattrxref from './macros/htmlattrxref';
import HttpHeader from './macros/http-header';
import httpMethod from './macros/http-method';
import interwiki from './macros/interwiki';
Expand Down Expand Up @@ -102,8 +100,6 @@ export function macros(context) {
xref_csscomputed: xrefCssComputed,
domxref,
ariarole,
htmlattrdef,
htmlattrxref,
no_tag_omission: noTagOmission,
svgelement,
js_property_attributes: jsPropertyAttributes,
Expand Down
5 changes: 0 additions & 5 deletions lib/kuma/macros/htmlattrdef.js

This file was deleted.

18 changes: 0 additions & 18 deletions lib/kuma/macros/htmlattrxref.js

This file was deleted.

10 changes: 7 additions & 3 deletions lib/read-json-dependency.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { readFileSync } from 'fs';
import resolvePackagePath from 'resolve-package-path';
import process from 'process';

import resolvePackagePath from 'resolve-package-path';

/**
*
* @param {string} moduleName Module name, containing the desired file
Expand All @@ -12,9 +13,12 @@ import process from 'process';
export default function readJsonDependency(moduleName, filePath) {
const basePathWithPackageJson = resolvePackagePath(moduleName, process.cwd());
if (!basePathWithPackageJson) {
throw new Error(`Could not resolve module ${moduleName}`)
throw new Error(`Could not resolve module ${moduleName}`);
}
const basePath = basePathWithPackageJson.slice(0, basePathWithPackageJson.length - 'package.json'.length)
const basePath = basePathWithPackageJson.slice(
0,
basePathWithPackageJson.length - 'package.json'.length,
);

let normalizedFilePath = filePath;

Expand Down
16 changes: 0 additions & 16 deletions test/src/kuma/macros/htmlattrdef.mjs

This file was deleted.

27 changes: 0 additions & 27 deletions test/src/kuma/macros/htmlattrxref.mjs

This file was deleted.

11 changes: 0 additions & 11 deletions test/src/kuma/macros/snapshots/htmlattrdef.mjs.md

This file was deleted.

Binary file removed test/src/kuma/macros/snapshots/htmlattrdef.mjs.snap
Binary file not shown.
17 changes: 0 additions & 17 deletions test/src/kuma/macros/snapshots/htmlattrxref.mjs.md

This file was deleted.

Binary file removed test/src/kuma/macros/snapshots/htmlattrxref.mjs.snap
Binary file not shown.

0 comments on commit fa2d91c

Please sign in to comment.