JavaCraft - 开发基础与框架

website·Indexed 30 days ago

https://javacraft.wkkya.top

A technical knowledge base focusing on development fundamentals and the core concepts of common frameworks, featuring sections on interview preparation, guides, and technical demonstrations.

Tokens
1.4K
Snippets
2
Records
20
Agent score
49%

What's inside JavaCraft

  1. Overview of theme layout components

    The theme layout consists of global navigation elements, page-specific content areas, and interface utility buttons. All layout components can be customized via the global theme options or within a page's frontmatter.
  2. Use Markdown for page generation in VuePress

    VuePress generates pages primarily from Markdown files. Developers can create and write Markdown files, and VuePress will convert them into different pages based on the file structure.
  3. Use Markdown and Frontmatter in VuePress

    VuePress generates pages primarily from Markdown files. To configure individual pages, VuePress uses Frontmatter, which is a metadata block at the top of the Markdown file used to define page-specific settings.
  4. Reference images in Markdown pages

    Images can be referenced in two ways depending on their location:

    1. For images stored in the same directory as the Markdown file, use a relative path.
    2. For images stored in the .vuepress/public folder, use an absolute path starting with /.
  5. Extend VuePress Markdown syntax with markdown-it

    VuePress utilizes the markdown-it library to parse Markdown content. Developers can implement additional syntax extensions by using markdown-it plugins.
  6. Use Vue components in Markdown

    Since every Markdown page is converted into a Vue component, you can use Vue syntax directly within your Markdown files. This includes using built-in theme components or importing and using your own custom Vue components.
  7. Configure VuePress pages using Frontmatter

    VuePress uses Frontmatter at the top of Markdown files to introduce page-specific configurations. This allows developers to define metadata and settings that control how the specific page is rendered or categorized.
  8. Set the page title in Markdown

    The page title is determined by the first H1 heading found in the Markdown content. Alternatively, you can explicitly define the page title using the title key in the Markdown Frontmatter.
    ---
    title: Page Title
    ---
  9. Disable page layout and features using Frontmatter

    You can disable specific UI components and layout features on a per-page basis by configuring the page's Frontmatter. This allows for the removal of standard elements such as the navigation bar, sidebar, breadcrumbs, page metadata, contributor information, 'Edit this page' links, update timestamps, pagination links (previous/next), comments, footer, and the 'back to top' button.