Skip to content

Commit

Permalink
fix library usage issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pelletier197 committed May 4, 2024
1 parent ed41739 commit b164f75
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magidoc/docs",
"version": "5.0.1",
"version": "5.0.2",
"license": "MIT",
"type": "module",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "magidoc",
"version": "5.0.1",
"version": "5.0.2",
"description": "MagiDoc is a documentation website generator for GraphQL based on Svelte and that allows for infinite customization through plugins.",
"repository": "git@github.com:magidoc-org/magidoc.git",
"author": "Sunny Pelletier",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/cli",
"description": "Magidoc CLI application responsible for generating GraphQL documentation websites.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/fuse-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-fuse-graphql",
"description": "A plugin used to index a GraphQL schema into a Fuse.js search engine.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/fuse-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-fuse-markdown",
"description": "A plugin used to index markdown text into a Fuse.js search engine.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/query-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-query-generator",
"description": "A browser and nodeJS compatible plugin that allows to generate GraphQL Queries and Variables",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/reverse-schema-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-reverse-schema-mapper",
"description": "A library that provides the ability to do a reverse lookup on GraphQL types.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/rollup-plugin-gql-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/rollup-plugin-gql-schema",
"description": "A Rollup and ViteJS plugin that allows to parse a GraphQL Schema from a target URL and save it to a target output folder, or to parse it from the disk and convert it to a desired format.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/starter-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-starter-common",
"description": "A shared library that contains common code shared between multiple starter applications.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/starter-variables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@magidoc/plugin-starter-variables",
"description": "A shared library that contains common Magidoc starter environment variables keys.",
"private": false,
"version": "5.0.1",
"version": "5.0.2",
"type": "module",
"license": "MIT",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/svelte-marked/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A markdown parser library that renders to svelte components.",
"type": "module",
"license": "MIT",
"version": "5.0.1",
"version": "5.0.2",
"svelte": "./build/index.js",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/svelte-prismjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "A Svelte component library providing an easy to use component to display PrismJS code blocks",
"type": "module",
"license": "MIT",
"version": "5.0.1",
"version": "5.0.2",
"svelte": "./build/index.js",
"main": "./build/index.js",
"types": "./build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/starters/carbon-multi-page/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@magidoc/starter-carbon-multi-page",
"version": "5.0.1",
"version": "5.0.2",
"license": "MIT",
"type": "module",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
import { getOrDefault, getSiteRoot } from '$lib/variables'
import { templates } from '@magidoc/plugin-starter-variables'
import {
isRelative,
joinUrlPaths,
} from '../../../../../../plugins/svelte-marked/build/utils/url'
import { urlUtils } from '@magidoc/plugin-svelte-marked'
let logoPath = getOrDefault(templates.APP_LOGO, DEFAULT_LOGO)
logoPath = isRelative(logoPath)
? joinUrlPaths(getSiteRoot(), logoPath)
logoPath = urlUtils.isRelative(logoPath)
? urlUtils.joinUrlPaths(getSiteRoot(), logoPath)
: logoPath
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
export let token: Tokens.Link
export let options: MarkdownOptions
function isRelative(url: string): boolean {
return url.startsWith('/') || url.startsWith('#')
}
</script>

<Link
href={isRelative(token.href)
href={urlUtils.isRelative(token.href)
? urlUtils.joinUrlPaths(options.baseUrl, token.href)
: token.href}
title={token.title}
Expand Down

0 comments on commit b164f75

Please sign in to comment.