Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: support user feedback on G6 site #6742

Merged
merged 1 commit into from
Jan 23, 2025
Merged

docs: support user feedback on G6 site #6742

merged 1 commit into from
Jan 23, 2025

Conversation

yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx commented Jan 23, 2025

  • Allow users to provide feedback directly on the G6 official website
image

Copy link

Walkthrough

This pull request introduces changes to the G6 site to allow users to provide feedback directly on the official website. It includes updates to configuration files and enhancements to the markdown emitter and document page title components to support this new feature.

Changes

Files Summary
packages/site/.dumirc.ts Added a new configuration option feedback to enable the feedback component on the site.
packages/site/package.json Minor changes related to package dependencies or scripts.
packages/site/src/markdown/CustomMarkdownEmitter.ts Enhanced to include a readonly property in the markdown output if specified.
packages/site/src/nodes/DocPageTitle.ts Updated to support a new readonly property in the DocPageTitle class and its interface.


public constructor(parameters: IDocPageTitleParameters) {
super(parameters);
this.title = parameters.title;
this.order = parameters.order;
this.readonly = true;

Choose a reason for hiding this comment

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

The readonly property is being set to true unconditionally in the constructor. If this is intended to be configurable, consider setting it based on the parameters input.

Copy link
Contributor

@Aarebecca Aarebecca left a comment

Choose a reason for hiding this comment

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

贴个图就好了~

@yvonneyx
Copy link
Contributor Author

贴个图就好了~

image

@yvonneyx yvonneyx merged commit c206a1d into v5 Jan 23, 2025
2 checks passed
@yvonneyx yvonneyx deleted the docs/ffedback branch January 23, 2025 03:32
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.

2 participants