Skip to content

Indicate blog customization in the documentation #3643

Closed

Description

@rafaelrdealmeida

📚 Documentation

Hello, the docusaurus documentation is very good, congratulations to the contributors.

But I have some difficulty understanding the files and settings to personalize the blog.

Have you read the Contributing Guidelines on issues?

yes

Does docusaurus v2 not point to the possibility of inserting configuration parameters in docusaurus.config.js (postsPerPage, blogSidebarCount, blogSidebarTitle) has something else? and the right sidebar of the post page is also possible to be removed, but this is not indicated.

     blog: {
          showReadingTime: true,
          postsPerPage: 3,
          blogSidebarCount: 2,
          blogSidebarTitle: 'Posts recentes',
          // Please change this to your repo.
          editUrl:
            'https://github.com/facebook/docusaurus/edit/master/website/blog/',
        },

BlogListPage
BlogListPaginator
BlogPostItem
BlogPostPage
BlogSidebar
BlogTagsListPage
BlogTagsPostsPage

In addition, through the yarn swizzle @ docusaurus / theme-classic <blog ...> --danger it is possible to customize a large part of the blog. Wouldn't it be worth explaining the documentation the function of each part of the theme below to indicate the possibilities of the blog?

see:

Activity

  1. added
    documentation
    status: needs triage
    on Oct 27, 2020
  2. slorber commented on Oct 27, 2020

    @slorber
    Collaborator

    Hi,

    We can definitively improve the documentation, if you have suggestions don't hesitate to send PRs directly.
    I'd like to re-org everything in this doc, but that will be done later.

  3. rafaelrdealmeida commented on Oct 27, 2020

    @rafaelrdealmeida
    Author

    Hi @slorber ,

    I am writing down the points that I feel could be added to the documentation. Next week we should finish adjusting our docusaurus. After that I did PRs.

    Do you have any guidance or requests regarding documentation that I can help with?

  4. slorber commented on Oct 28, 2020

    @slorber
    Collaborator

    Not much guidance, we have undocumented things, and documenting them will definitively be better than not :)
    Just try to put the doc in the correct place. Also code blocks are not searchable easily so. we'd rather have all searchable content documented outside of codeblocks as well.

    Once I ship i18n I'll reorg the docs. We need something better before translation our own website :)

  5. stnor commented on May 6, 2021

    @stnor
    Contributor

    I don't understand how to translate or override the blogSidebarTitle in 2.x for the default blog. Any hints would be appreciated. I also notice that the example 2.x Docusarurus website doesn't translate it either.
    Eg: https://docusaurus.io/fr/blog

  6. slorber commented on May 6, 2021

    @slorber
    Collaborator

    @stnor it looks like you are right and it's not possible.

    Just reported it here alongside other items that are not translatable: #4542 (comment)

  7. stnor commented on May 6, 2021

    @stnor
  8. slorber commented on May 6, 2021

    @slorber
  9. stnor commented on May 6, 2021

    @stnor
  10. slorber commented on May 7, 2021

    @slorber
  11. removed
    status: needs triage
    on Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions