Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Data files and dynamic page generation support #452

Closed
@avishnyakov

Description

@avishnyakov

Hey guys, thanks for this amazing project. That fact that it comes with a built-in support for technical documentation is pure gold.

Looking into doco, could not find anything on how to bring custom datasets into VuePress workflow. For example, there is a bunch of YAML/JSON files somewhere in the folder which will later be used to generate some bits of contents or whole pages. There are two scenario here:

  • generating content on the page leveraging Vue inside markdown
  • generating whole pages dynamically based on incoming data

For example, here is how Middleman handles this. It exposed a global "data" object which can be used within templates.

https://middlemanapp.com/advanced/data-files/

I saw that this.$site and this.$page provides access to page metadata and front matter, but still not sure how to address custom data files access in the right way.

Could you please provide guidance on this? Updating documentation on how to handle these cases would be awesome as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature requestRequest to add a new featureversion: nextPlanned to do or already included in the next(1.0.0) version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions