Skip to content

Commit

Permalink
Use @sransara/astro-adocx package
Browse files Browse the repository at this point in the history
  • Loading branch information
sransara committed Jul 8, 2024
1 parent 2b16955 commit e7a9313
Show file tree
Hide file tree
Showing 29 changed files with 41 additions and 5,064 deletions.
2 changes: 1 addition & 1 deletion adocx/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path';

// @ts-ignore: Types are not available
import { register as krokiPluginRegisterHandle } from 'asciidoctor-kroki';
import type { AdocOptions, AstroAdocxOptions, Template } from 'astro-adocx/types';
import type { AdocOptions, AstroAdocxOptions, Template } from '@sransara/astro-adocx/types';

import { register as inlineMacroCalloutRegisterHandle } from './extensions/inlineMacroCallout';

Expand Down
2 changes: 1 addition & 1 deletion adocx/extensions/inlineMacroCallout.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Extensions } from 'asciidoctor';

import { isExtensionSingleton } from 'astro-adocx/types';
import { isExtensionSingleton } from '@sransara/astro-adocx/types';

export function register(registry: typeof Extensions | Extensions.Registry) {
if (isExtensionSingleton(registry)) {
Expand Down
4 changes: 2 additions & 2 deletions adocx/templates/inline_quoted.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Inline } from 'asciidoctor';
import { UnsupportedNode, type Template } from 'astro-adocx/types.ts';
import { addOnceToAstroFence } from 'astro-adocx/utils/astroFence.ts';
import { UnsupportedNode, type Template } from '@sransara/astro-adocx/types';
import { addOnceToAstroFence } from '@sransara/astro-adocx/utils/astroFence';

export const convert: Template<Inline>['convert'] = (node: Inline, _opts?: any) => {
const nodeType = node.getType();
Expand Down
6 changes: 3 additions & 3 deletions adocx/templates/listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// - https://github.com/asciidoctor/asciidoctor-backends/blob/master/erb/html5/block_math.html.erb

import type { Block } from 'asciidoctor';
import { type Template } from 'astro-adocx/types.ts';
import { addOnceToAstroFence } from 'astro-adocx/utils/astroFence';
import { atag } from 'astro-adocx/utils/asx.ts';
import { type Template } from '@sransara/astro-adocx/types';
import { addOnceToAstroFence } from '@sransara/astro-adocx/utils/astroFence';
import { atag } from '@sransara/astro-adocx/utils/asx';

export const convert: Template<Block>['convert'] = (node: Block, _opts?: any) => {
const id = node.getId();
Expand Down
6 changes: 3 additions & 3 deletions adocx/templates/stem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// - https://github.com/asciidoctor/asciidoctor-backends/blob/master/erb/html5/block_math.html.erb

import type { Block } from 'asciidoctor';
import { type Template } from 'astro-adocx/types.ts';
import { addOnceToAstroFence } from 'astro-adocx/utils/astroFence';
import { atag } from 'astro-adocx/utils/asx.ts';
import { type Template } from '@sransara/astro-adocx/types';
import { addOnceToAstroFence } from '@sransara/astro-adocx/utils/astroFence';
import { atag } from '@sransara/astro-adocx/utils/asx';

export const convert: Template<Block>['convert'] = (node: Block, _opts?: any) => {
const id = node.getId();
Expand Down
6 changes: 3 additions & 3 deletions astro.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import sitemap from '@astrojs/sitemap';
import solid from '@astrojs/solid-js';
import tailwind from '@astrojs/tailwind';
import { adocx } from 'astro-adocx/integration';
import { adocx } from '@sransara/astro-adocx/integration';
import { defineConfig } from 'astro/config';

import { adocxConfig, asciidoctorConfig } from './adocx/config.ts';
import siteValues from './site.values.js';
import { adocxConfig, asciidoctorConfig } from './adocx/config';
import siteValues from './site.values';

export default defineConfig({
site: siteValues.site,
Expand Down
51 changes: 0 additions & 51 deletions linkd/astro-adocx/converter.ts

This file was deleted.

31 changes: 0 additions & 31 deletions linkd/astro-adocx/extensions/postprocessorLayout.ts

This file was deleted.

169 changes: 0 additions & 169 deletions linkd/astro-adocx/integration.ts

This file was deleted.

18 changes: 0 additions & 18 deletions linkd/astro-adocx/package.json

This file was deleted.

36 changes: 0 additions & 36 deletions linkd/astro-adocx/patches/compile.js

This file was deleted.

Loading

0 comments on commit e7a9313

Please sign in to comment.