fix: docpath
This commit is contained in:
parent
b60156985c
commit
1901ae7e35
|
@ -24,8 +24,9 @@ export class FileResult {
|
|||
|
||||
public async writeDevDoc(path: string) {
|
||||
const result = inPageAnchors(this.staged.join(''));
|
||||
const docPath = "https://github.com/Shopify/shopify-dev/blob/master/content/internal/operations/hydrogen-reference-docs.md"
|
||||
|
||||
const comment = `<!-- This file is generated from source code in the Shopify/hydrogen repo. Any changes you make here will be overwritten. For more information, refer to https://github.com/Shopify/shopify-dev/blob/master/content/internal/operations/hydrogen-reference-docs.md. -->`;
|
||||
const comment = `<!-- This file is generated from source code in the Shopify/hydrogen repo. Any changes you make here will be overwritten. For more information, refer to ${docPath}. -->`;
|
||||
|
||||
await this.write(path, [this.frontMatter, comment, result].join('\n\n'));
|
||||
}
|
||||
|
@ -37,8 +38,9 @@ export class FileResult {
|
|||
}
|
||||
|
||||
const localPath = path.replace(resolve('.'), '');
|
||||
const docPath = "https://github.com/Shopify/shopify-dev/blob/master/content/internal/operations/hydrogen-reference-docs.md"
|
||||
const finalPath = resolve(path, 'README.md');
|
||||
const comment = `<!-- This file is generated from source code in the Shopify/hydrogen repo. Edit the files in ${localPath} and run 'yarn generate-docs' at the root of this repo. For more information, refer to https://github.com/Shopify/shopify-dev/blob/master/content/internal/operations/hydrogen-reference-docs.md. -->`;
|
||||
const comment = `<!-- This file is generated from source code in the Shopify/hydrogen repo. Edit the files in ${localPath} and run 'yarn generate-docs' at the root of this repo. For more information, refer to ${docPath}. -->`;
|
||||
await this.write(
|
||||
finalPath,
|
||||
[comment, ...this.staged].join('\n\n').trim()
|
||||
|
|
Loading…
Reference in a new issue