Skip to content

Commit

Permalink
some more file rename
Browse files Browse the repository at this point in the history
  • Loading branch information
szabinakov committed Feb 8, 2024
1 parent 6f9bfe3 commit 203de2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/nextra/src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ export async function compileMdx(
format,
outputFormat,
providerImportSource: isFileOutsideCWD
? require.resolve('nextra').replace(/index\.js$/, 'mdx.js') // fixes Package subpath './mdx' is not defined by "exports"
: 'nextra/mdx',
? require.resolve('@charisma-ai/nextra').replace(/index\.js$/, 'mdx.js') // fixes Package subpath './mdx' is not defined by "exports"
: '@charisma-ai/nextra/mdx',
remarkPlugins: [
...(remarkPlugins || []),
remarkMermaid, // should be before remarkRemoveImports because contains `import { Mermaid } from ...`
[
remarkNpm2Yarn, // should be before remarkRemoveImports because contains `import { Tabs as $Tabs, Tab as $Tab } from ...`
{
packageName: 'nextra/components',
packageName: '@charisma-ai/nextra/components',
tabNamesProp: 'items',
storageKey: 'selectedPackageManager'
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextra/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ ${

const lastIndexOfFooter = finalResult.lastIndexOf(FOOTER_TO_REMOVE)

const rawJs = `import { setupNextraPage } from 'nextra/setup-page'
const rawJs = `import { setupNextraPage } from '@charisma-ai/nextra/setup-page'
${HAS_UNDERSCORE_APP_MDX_FILE ? '' : pageImports}
${
// Remove the last match of `export default MDXContent;` because it can be existed in the raw MDX file
Expand Down
2 changes: 1 addition & 1 deletion packages/nextra/src/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function buildDynamicMDX(
if (compileMdxOptions && 'remarkLinkRewriteOptions' in compileMdxOptions) {
throw new Error(`\`remarkLinkRewriteOptions\` was removed. For overriding internal links use \`remarkLinkRewrite\` instead.
import { remarkLinkRewrite } from 'nextra/mdx-plugins'
import { remarkLinkRewrite } from '@charisma-ai/nextra/mdx-plugins'
// ...
Expand Down

0 comments on commit 203de2d

Please sign in to comment.