mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-28 07:35:50 +00:00
Fix redocly/portal→realm import paths
This commit is contained in:
@@ -7,7 +7,7 @@ export default function customPlugin() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */
|
/** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */
|
||||||
const pluginInstance = {
|
const pluginInstance = {
|
||||||
processContent: async (content, actions) => {
|
processContent: async (content, actions) => {
|
||||||
await indexPagesInst.processContent?.(content, actions);
|
await indexPagesInst.processContent?.(content, actions);
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
import { getInnerText } from '@redocly/portal/dist/shared/markdoc.js';
|
import { getInnerText } from '@redocly/realm/dist/shared/markdoc.js';
|
||||||
|
|
||||||
import { dirname, relative, join as joinPath } from 'path';
|
import { dirname, relative, join as joinPath } from 'path';
|
||||||
import markdoc from '@markdoc/markdoc';
|
import markdoc from '@markdoc/markdoc';
|
||||||
|
|
||||||
export function codeSamples() {
|
export function codeSamples() {
|
||||||
/** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */
|
/** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */
|
||||||
const instance = {
|
const instance = {
|
||||||
processContent: async (contentProvider, actions) => {
|
processContent: async (contentProvider, actions) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import { readSharedData } from '@redocly/portal/dist/server/utils/shared-data.js'; // TODO: export function from root package
|
import { readSharedData } from '@redocly/realm/dist/server/utils/shared-data.js'; // TODO: export function from root package
|
||||||
const INDEX_PAGE_INFO_DATA_KEY = 'index-page-items';
|
const INDEX_PAGE_INFO_DATA_KEY = 'index-page-items';
|
||||||
|
|
||||||
export function indexPages() {
|
export function indexPages() {
|
||||||
/** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */
|
/** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */
|
||||||
const instance = {
|
const instance = {
|
||||||
// hook that gets executed after all routes were created
|
// hook that gets executed after all routes were created
|
||||||
async afterRoutesCreated(contentProvider, actions) {
|
async afterRoutesCreated(contentProvider, actions) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"./node_modules/@redocly/theme/src/*"
|
"./node_modules/@redocly/theme/src/*"
|
||||||
],
|
],
|
||||||
"@portal/*": [
|
"@portal/*": [
|
||||||
"./node_modules/@redocly/portal/dist/client/App/*"
|
"./node_modules/@redocly/realm/dist/client/App/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user