Skip to content

chore: fix building license for docs#3952

Merged
UziTech merged 1 commit intomarkedjs:masterfrom
UziTech:build-LICENSE
Apr 20, 2026
Merged

chore: fix building license for docs#3952
UziTech merged 1 commit intomarkedjs:masterfrom
UziTech:build-LICENSE

Conversation

@UziTech
Copy link
Copy Markdown
Member

@UziTech UziTech commented Apr 20, 2026

Description

LICENSE.md was changed to LICENSE recently but not updated in docs

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

@UziTech is attempting to deploy a commit to the MarkedJS Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marked-website Ready Ready Preview, Comment Apr 20, 2026 2:25am

Request Review

@UziTech UziTech changed the title fix building license for docs chore: fix building license for docs Apr 20, 2026
@UziTech UziTech merged commit 17c06e9 into markedjs:master Apr 20, 2026
8 checks passed
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation build script to copy the LICENSE file instead of LICENSE.md. Feedback suggests that copying the license into the source tree creates unnecessary duplication and potential pollution; it is recommended to either reference the source file directly during the build or ensure the temporary copy is deleted once the process completes.

Comment thread docs/build.js
await mkdir(join(outputDir, 'lib'));
console.log(`Copying file ${join(inputDir, 'LICENSE.md')}`);
await copyFile(join(cwd, 'LICENSE.md'), join(inputDir, 'LICENSE.md'));
await copyFile(join(cwd, 'LICENSE'), join(inputDir, 'LICENSE.md'));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The current implementation copies the LICENSE file into the docs/ directory (which is part of the source tree) to make it available for the build process. This creates a duplicate file that persists in the repository after the build completes, which can be confusing for developers and may lead to accidental commits of the generated file if it is not properly gitignored. A more maintainable approach would be to process the LICENSE file directly from its source location or to ensure the temporary copy is removed after the build is finished to avoid source tree pollution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant