ekoeryanto / vuepress-plugin-sitemap

Sitemap generator plugin for vuepress.
MIT License
93 stars 19 forks source link

Doc enhancement #32

Closed Mister-Hope closed 3 years ago

Mister-Hope commented 4 years ago

The doc in readme is too simple.

E.g.: the param time in the dateFormat function, we don't know what's it unless we read through the code.

saleh-old commented 4 years ago

I couldn't even get it started. I installed and here is my plugins in the config file:

    plugins: [
        '@vuepress/medium-zoom',
        [
            '@vuepress/google-analytics',
            {
                ga: 'UA-135004813-1',
            },
        ],
        [
            'sitemap',
            {
                hostname: 'https://docs.jesse-ai.com',
            },
        ],
    ],

Am I missing something?

Mister-Hope commented 4 years ago

I couldn't even get it started. I installed and here is my plugins in the config file:

    plugins: [
        '@vuepress/medium-zoom',
        [
            '@vuepress/google-analytics',
            {
                ga: 'UA-135004813-1',
            },
        ],
        [
            'sitemap',
            {
                hostname: 'https://docs.jesse-ai.com',
            },
        ],
    ],

Am I missing something?

What's the error log?

saleh-old commented 4 years ago

@Mister-Hope there's no error, I just can't seem to find the sitemap if there's any. I expected to be present at: http://localhost:8080/sitemap.xml

Am I missing something?

Mister-Hope commented 4 years ago

The sitemap is only generated when building

PatrickSUDO commented 3 years ago

I cannot generate a sitemap when building either.

plugins: [
    ['cursor-effects'],
    ['seo'],
    // ['@vuepress/plugin-blog'],
    ['vuepress-plugin-mathjax'],
    ['vuepress-plugin-disqus'],
    ['sitemap', 
    {
      hostname:'https://patricksudo.github.io'
    },
  ],
    // ['vuepress-plugin-auto-sidebar'],   
],

image

Mister-Hope commented 3 years ago

Since this plugin is not maintained. You can try @mr-hope/vuepress-plugin-sitemap

https://vuepress-theme-hope.github.io/sitemap/

PatrickSUDO commented 3 years ago

Thanks, your plugin works, really helpful.