Skip to content

Commit

Permalink
Merge branch 'main' into coyotte508-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 authored Oct 26, 2023
2 parents a6165d5 + 885262a commit 3397cab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ You can run our packages with vanilla JS, without any bundler, by using a CDN or
```html
<script type="module">
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/inference@2.6.4/+esm';
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/hub@0.11.31.21.11.00.00.0/+esm";
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/hub@0.11.3/+esm";
</script>
```

Expand Down
4 changes: 2 additions & 2 deletions packages/doc-internal/fix-cdn-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ for (const readme of [
let content = readFileSync(readme, "utf-8");

content = content.replace(
/@huggingface[/]inference@\d([.]\d)?([.]\d)?/g,
/@huggingface[/]inference@\d+([.]\d+)?([.]\d+)?/g,
`@huggingface/inference@${inferencePackage.version}`
);
content = content.replace(/@huggingface[/]hub@\d([.]\d)?([.]\d)?/g, `@huggingface/hub@${hubPackage.version}`);
content = content.replace(/@huggingface[/]hub@\d+([.]\d+)?([.]\d+)?/g, `@huggingface/hub@${hubPackage.version}`);

writeFileSync(readme, Buffer.from(content));
}
8 changes: 4 additions & 4 deletions packages/doc-internal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"doc-hub": "typedoc --tsconfig ../hub/tsconfig.json --githubPages false --plugin typedoc-plugin-markdown --out ../../docs/hub --hideBreadcrumbs --hideInPageTOC --sourceLinkTemplate https://github.com/huggingface/huggingface.js/blob/main/{path}#L{line} ../hub/index.ts",
"doc-inference": "typedoc --tsconfig ../inference/tsconfig.json --githubPages false --plugin typedoc-plugin-markdown --out ../../docs/inference --hideBreadcrumbs --hideInPageTOC --sourceLinkTemplate https://github.com/huggingface/huggingface.js/blob/main/{path}#L{line} ../inference/src/index.ts",
"doc-agents": "typedoc --tsconfig ../agents/tsconfig.json --githubPages false --plugin typedoc-plugin-markdown --out ../../docs/agents --hideBreadcrumbs --hideInPageTOC --sourceLinkTemplate https://github.com/huggingface/huggingface.js/blob/main/{path}#L{line} ../agents/src/index.ts",
"update-toc": "ts-node --esm update-toc.ts",
"fix-cdn-versions": "ts-node --esm fix-cdn-versions.ts",
"fix-md-links": "ts-node --esm fix-md-links.ts",
"fix-md-headinghashlinks": "ts-node --esm fix-md-headinghashlinks.ts"
"update-toc": "node --experimental-specifier-resolution=node --loader ts-node/esm update-toc.ts",
"fix-cdn-versions": "node --experimental-specifier-resolution=node --loader ts-node/esm fix-cdn-versions.ts",
"fix-md-links": "node --experimental-specifier-resolution=node --loader ts-node/esm fix-md-links.ts",
"fix-md-headinghashlinks": "node --experimental-specifier-resolution=node --loader ts-node/esm fix-md-headinghashlinks.ts"
},
"type": "module",
"license": "MIT",
Expand Down

0 comments on commit 3397cab

Please sign in to comment.