Skip to content

Commit

Permalink
Merge pull request #1701 from milvus-io/fix/anchor
Browse files Browse the repository at this point in the history
fix: table content anchor
  • Loading branch information
ThyeeZz authored Nov 29, 2024
2 parents 4b4299e + 834572f commit aafb5ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/docs
Submodule docs updated 232 files
8 changes: 6 additions & 2 deletions src/utils/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ const readFile = (params: {
);
} else if (fileStat.isFile() && path.endsWith('.md')) {
const fileData = fs.readFileSync(path, 'utf-8');
const propsInfo = fs.readFileSync(path.replace('.md', '.json'), 'utf-8');
const propsInfo = removeZeroWidthSpacesFromString(
fs.readFileSync(path.replace('.md', '.json'), 'utf-8')
);

const { data, content } = matter(fileData) as {
data: DocFrontMatterType;
Expand Down Expand Up @@ -274,7 +276,9 @@ export const generateHomePageDataOfSingleVersion = (params: {
`localization/${version}/site/${lang}/home/home.md`
);
const fileInfo = fs.readFileSync(filePath, 'utf-8');
const propsInfo = fs.readFileSync(filePath.replace('.md', '.json'), 'utf-8');
const propsInfo = removeZeroWidthSpacesFromString(
fs.readFileSync(filePath.replace('.md', '.json'), 'utf-8')
);
const { data, content } = matter(fileInfo) as {
data: DocFrontMatterType;
content: string;
Expand Down

0 comments on commit aafb5ff

Please sign in to comment.