jbaubree / sitemap-ts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Line 60 in f515bb9
It should be extensions
.
Hi! I'm using your library to generate a sitemap for a VitePress site (https://abbekeultjes.nl/honeycomb). I'd like to be able to generate links in the sitemap for a hostname and base path (not sure if that's the best name): https://abbekeultjes.nl/honeycomb/
. When I pass that url for the hostname
option, the /honeycomb/
part is removed. This makes sense, since it's not part of the hostname.
Could you add an option to specify any path elements that get appended to the hostname?
Thanks!
If you pass to outDir
absolute path in will convert it to relative and crash.
generateSitemap({
outDir: 'C:/Users/kozac/Dev/kozack.me/docs/.vitepress/dist',
dynamicRoutes: pages,
})
Error: ENOENT: no such file or directory, open 'C:\Users\kozac\Dev\kozack.me\C:\Users\kozac\Dev\kozack.me\docs\.vitepress\dist\robots.txt'
at Object.openSync (node:fs:599:3)
at Object.writeFileSync (node:fs:2221:35)
at generateSitemap (C:\Users\kozac\Dev\kozack.me\node_modules\sitemap-ts\dist\index.cjs:122:6)
at Object.buildEnd (C:\Users\kozac\Dev\kozack.me\docs\.vitepress\config.js:72:43)
at build (file:///C:/Users/kozac/Dev/kozack.me/node_modules/vitepress/dist/node/serve-1b26f7f9.js:41479:59)
Hi! I'm about to create a MR to your repo with a new feature, but I encountered an error during lint-staged
check run. The error is reproducible on the current master version of your repo, so probably it's not subject to my MR.
It seems to me, the config is written incorrectly, and there are some articles how to configure vitest.config.ts - all of them suggest another structure - code below (some articles - one, two, three). However, if I try to use the following code, nothing happens (just an empty output...or maybe it's the expected behavior?)
vitest.config.ts file
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
name: 'config',
setupFiles: 'test/setup.ts',
},
})
Here is what happen with the old config file. Simply speaking, the type is wrong.
Just open file (I use WebStorm) and see that:
Console after manual run of tsc --skipLibCheck --noEmit
If I run my code with a possible fix:
FYI: I use yarn, TS 4.9.4.
Could you help me to figure out that issue? Thanks!
Hello,
Version 0.4.0 broke this package. Version 0.3.0 works properly.
Recently, the sitemap output does not correctly append the dynamic route. Instead, it just puts 'route' at the end of each item.
For instance, this is what happens when I give dynamicRoutes: ['/about']
as an option:
<url>
<loc>
https://example.com/route
</loc>
<lastmod>
2023-05-06T04:35:50.973Z
</lastmod>
<changefreq>
daily
</changefreq>
<priority>
1.0
</priority>
</url>
See details in this issue: jbaubree/vite-plugin-sitemap#59
Can we get an option to add additional sitemap endpoints that may be generated by other means?
Example:
{
additionalSitemaps: [
'https://example.com/sitemap2.xml',
'https://example.com/sitemap3.xml',
]
}
when ssg build with options {"includeAllRoutes": true}
or with a includedRoutes
function, file like /user/[id].vue
got generated to /user/:id.html
, the exclude
option support string only, so how could i remove these from the result?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@vitest/coverage-v8
, vitest
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci.yml
actions/checkout v4
pnpm/action-setup v2
actions/setup-node v3
actions/checkout v4
pnpm/action-setup v2
actions/setup-node v3
package.json
@antfu/utils 0.7.6
fast-glob 3.3.1
sitemap 7.1.1
xml-formatter 3.5.0
@antfu/eslint-config ^0.43.1
@antfu/ni 0.21.8
@babel/types 7.23.0
@types/node 20.8.7
@vitest/coverage-v8 ^0.34.6
bumpp 9.2.0
eslint 8.51.0
esno 0.17.0
lint-staged 15.0.2
pnpm 8.9.2
rimraf 5.0.5
simple-git-hooks 2.9.0
taze ^0.11.4
typescript 5.2.2
unbuild 2.0.0
vite 4.5.0
vitest 0.34.6
pnpm 8.9.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.