Skip to content

IDEA

This page demonstrates usage of some of the runtime APIs provided by VitePress.

The main useData() API can be used to access site, theme, and page data for the current page. It works in both .md and .vue files:

md
<script setup>
import { useData } from 'vitepress'

const { theme, page, frontmatter } = useData()
</script>

## Results

### Theme Data
<pre>{{ theme }}</pre>

### Page Data
<pre>{{ page }}</pre>

### Page Frontmatter
<pre>{{ frontmatter }}</pre>

Results

Theme Data

{
  "logo": "/images/smalllogo.png",
  "nav": [
    {
      "text": "首页",
      "link": "/"
    },
    {
      "text": "IDE",
      "link": "/blogs/ide/idea/IDEA导入发布Eclipse项目Tomcat版"
    },
    {
      "text": "前端技术",
      "link": "/blogs/front/antd/AntDesign入门指南"
    },
    {
      "text": "后端技术",
      "link": "/blogs/back/java/jdk/JDK6升级支持最新https"
    },
    {
      "text": "数据库",
      "link": "/blogs/database/oracle/Linux静默安装Oracle11gR2"
    },
    {
      "text": "安全与加密",
      "link": "/blogs/security/java/转换大小写进行equals比较没有指定Locale"
    },
    {
      "text": "Linux",
      "link": "/blogs/linux/shell/Java程序员最常用的Linux命令"
    },
    {
      "text": "常用软件",
      "link": "/blogs/software/nginx/安装nginx"
    },
    {
      "text": "版本管理",
      "link": "/blogs/vcs/git/安装Git和TortoiseGit"
    },
    {
      "text": "AI",
      "link": "/blogs/ai/basic/AI常见单词"
    },
    {
      "text": "英语",
      "link": "/blogs/english/常见IT英语单词"
    },
    {
      "text": "岚山户外",
      "link": "/blogs/cat/index"
    },
    {
      "text": "关于作者",
      "link": "/blogs/about/about"
    }
  ],
  "socialLinks": [
    {
      "icon": {
        "svg": "<svg width=\"72px\" height=\"72px\" viewBox=\"0 0 72 72\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n    <title>logo_gitee_g_red@1x</title>\n    <g id=\"LOGO\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n        <g id=\"Artboard-7\" transform=\"translate(-192.000000, -115.000000)\" fill=\"#C71D23\">\n            <path d=\"M228,115 C247.882251,115 264,131.117749 264,151 C264,170.882251 247.882251,187 228,187 C208.117749,187 192,170.882251 192,151 C192,131.117749 208.117749,115 228,115 Z M246.223335,131 C246.222967,131 246.2226,131 246.222232,131.001102 L221.33326,131.001102 C213.969504,131.001102 208,136.970606 208,144.334362 L208,169.222232 C208,170.204066 208.795934,171 209.777768,171 L236.000329,171 C242.627564,171 248,165.627564 248,159.000329 L248,148.778425 C248,147.796591 247.204066,147.000657 246.222232,147.000657 L225.7779,147.000657 C224.796248,147.001123 224.000389,147.796773 223.999667,148.778425 L223.998503,153.222667 C223.997802,154.155409 224.715909,154.920565 225.629522,154.994969 L225.775805,155.00042 L225.775805,155.00042 L238.222276,155.000317 C239.155019,155.000295 239.919992,155.718618 239.994164,156.63225 L240.000044,156.77807 L240.000044,156.77807 L240.000044,157.666909 C240.000044,160.612411 237.612243,163.000213 234.66674,163.000213 L217.776621,163.000213 C216.794928,163.000164 215.999101,162.204358 215.999025,161.222665 L215.998559,144.334184 C215.998337,141.462319 218.268172,139.120556 221.111731,139.005187 L221.331716,139.00088 L221.331716,139.00088 L246.21727,139.00088 C247.198674,138.999777 247.994429,138.204515 247.996141,137.223112 L247.998897,132.77887 C248.000609,131.797037 247.205169,131.000609 246.223335,131 Z\" id=\"logo_gitee_g_red\"></path>\n        </g>\n    </g>\n</svg>"
      },
      "link": "https://gitee.com/fivedoc"
    }
  ],
  "lastUpdated": true,
  "docFooter": {
    "prev": "上一页",
    "next": "下一页"
  },
  "search": {
    "provider": "local"
  },
  "outline": {
    "label": "目录"
  },
  "sidebar": {
    "/blogs/cat/": [
      {
        "text": "北京的猫",
        "collapsible": true,
        "collapsed": false,
        "items": [
          {
            "text": "凤凰岭的猫",
            "link": "/blogs/cat/index"
          }
        ]
      }
    ],
    "/blogs/database/": [
      {
        "text": "数据库",
        "activeMatch": "/database/",
        "collapsible": true,
        "collapsed": true,
        "items": [
          {
            "text": "oracle"
          },
          {
            "items": [
              {
                "text": "Linux静默安装Oracle11gR2",
                "link": "/blogs/database/oracle/Linux静默安装Oracle11gR2"
              },
              {
                "text": "Oracle数据重复、分页异常和混乱问题",
                "link": "/blogs/database/oracle/Oracle数据重复、分页异常和混乱问题"
              },
              {
                "text": "Oracle快速创建表空间及用户授权",
                "link": "/blogs/database/oracle/Oracle快速创建表空间及用户授权"
              },
              {
                "text": "Windows上Oracle启动关闭慢,有时访问慢问题排查",
                "link": "/blogs/database/oracle/Windows上Oracle启动关闭慢,有时访问慢问题排查"
              }
            ]
          },
          {
            "text": "SQL"
          },
          {
            "items": [
              {
                "text": "从实践中学习OracleSQL1",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记1"
              },
              {
                "text": "从实践中学习OracleSQL2",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记2"
              },
              {
                "text": "从实践中学习OracleSQL3",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记3"
              },
              {
                "text": "从实践中学习OracleSQL4",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记4"
              },
              {
                "text": "从实践中学习OracleSQL5",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记5"
              },
              {
                "text": "从实践中学习OracleSQL6",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记6"
              },
              {
                "text": "从实践中学习OracleSQL7",
                "link": "/blogs/database/sql/从实践中学习OracleSQL读书笔记7"
              }
            ]
          },
          {
            "text": "PL/SQL"
          },
          {
            "items": [
              {
                "text": "Oracle9i PL/SQL 从入门到精通读书笔记1",
                "link": "/blogs/database/plsql/Oracle9iPLSQL从入门到精通读书笔记1"
              },
              {
                "text": "Oracle9i PL/SQL 从入门到精通读书笔记2",
                "link": "/blogs/database/plsql/Oracle9iPLSQL从入门到精通读书笔记2"
              }
            ]
          }
        ]
      }
    ],
    "/blogs/vcs/": [
      {
        "text": "Git",
        "activeMatch": "/vcs/",
        "collapsible": true,
        "collapsed": true,
        "items": [
          {
            "text": "安装Git和TortoiseGit",
            "link": "/blogs/vcs/git/安装Git和TortoiseGit"
          },
          {
            "text": "在IDEA中使用Git"
          },
          {
            "items": [
              {
                "text": "基础操作",
                "link": "/blogs/vcs/git/基础操作"
              },
              {
                "text": "高级操作",
                "link": "/blogs/vcs/git/高级操作"
              }
            ]
          }
        ]
      },
      {
        "text": "Subversion",
        "activeMatch": "/svn/",
        "collapsible": true,
        "collapsed": true,
        "items": [
          {
            "text": "svn版本管理",
            "link": "/blogs/vcs/svn/svn版本管理"
          }
        ]
      }
    ],
    "/blogs/security/": [
      {
        "text": "Java",
        "activeMatch": "/java/",
        "collapsible": true,
        "collapsed": true,
        "items": [
          {
            "text": "转换大小写进行equals比较没有指定Locale",
            "link": "/blogs/security/java/转换大小写进行equals比较没有指定Locale"
          }
        ]
      },
      {
        "text": "Subversion",
        "activeMatch": "/svn/",
        "collapsible": true,
        "collapsed": true,
        "items": [
          {
            "text": "即将到来",
            "link": "/blogs/vcs/svn/index"
          }
        ]
      }
    ],
    "/blogs/software/": [
      {
        "text": "Nginx",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/nginx/",
        "items": [
          {
            "text": "安装Nginx",
            "link": "/blogs/software/nginx/安装nginx"
          }
        ]
      },
      {
        "text": "Redis",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/redis/",
        "items": [
          {
            "text": "安装Redis",
            "link": "/blogs/software/Redis/安装Redis"
          }
        ]
      },
      {
        "text": "Tomcat",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/tomcat/",
        "items": [
          {
            "text": "安装Tomcat",
            "link": "/blogs/software/tomcat/安装Tomcat"
          },
          {
            "text": "Tomcat项目乱码问题",
            "link": "/blogs/software/tomcat/Tomcat项目乱码问题"
          }
        ]
      },
      {
        "text": "Resin",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/rein/",
        "items": [
          {
            "text": "在Linux上安装resin 3.0",
            "link": "/blogs/software/resin/在Linux上安装resin 3.0"
          }
        ]
      }
    ],
    "/blogs/front/": [
      {
        "text": "Ant Design",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/antd/",
        "items": [
          {
            "text": "AntDesign入门指南",
            "link": "/blogs/front/antd/AntDesign入门指南"
          },
          {
            "text": "基于Ant Design Mobile的移动端web快速开发",
            "link": "/blogs/front/antd/基于Ant Design Mobile的移动端web快速开发"
          },
          {
            "text": "页脚Footer的三种展示方式",
            "link": "/blogs/front/antd/页脚Footer的三种展示方式"
          }
        ]
      }
    ],
    "/blogs/back/": [
      {
        "text": "Java",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/java/",
        "items": [
          {
            "text": "JDK",
            "activeMatch": "/jdk/",
            "collapsible": true,
            "collapsed": true,
            "items": [
              {
                "text": "JDK6升级支持最新https",
                "link": "/blogs/back/java/jdk/JDK6升级支持最新https"
              },
              {
                "text": "在Linux上安装JDK",
                "link": "/blogs/back/java/jdk/在Linux上安装JDK"
              }
            ]
          },
          {
            "text": "Spring",
            "activeMatch": "/spring/",
            "collapsible": true,
            "collapsed": true,
            "items": [
              {
                "text": "JDK6升级支持最新https",
                "link": "/blogs/back/java/jdk/JDK6升级支持最新https"
              }
            ]
          }
        ]
      }
    ],
    "/blogs/linux/": [
      {
        "text": "Shell",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/shell/",
        "items": [
          {
            "text": "Java程序员最常用的Linux命令",
            "link": "/blogs/linux/shell/Java程序员最常用的Linux命令"
          },
          {
            "text": "Vi常用命令",
            "link": "/blogs/linux/shell/Vi常用命令"
          }
        ]
      }
    ],
    "/blogs/ai/": [
      {
        "text": "AI",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/ai/",
        "items": [
          {
            "text": "AI常见单词",
            "link": "/blogs/ai/basic/AI常见单词"
          },
          {
            "text": "AI常见术语",
            "link": "/blogs/ai/basic/AI常见术语"
          }
        ]
      }
    ],
    "/blogs/english/": [
      {
        "text": "词汇",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/english/",
        "items": [
          {
            "text": "常见IT英语单词",
            "link": "/blogs/english/常见IT英语单词"
          },
          {
            "text": "常见IT术语",
            "link": "/blogs/english/常见IT英语单词"
          }
        ]
      }
    ],
    "/blogs/ide/": [
      {
        "text": "IDE",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/ide/",
        "items": [
          {
            "text": "IDEA",
            "link": "/blogs/ide/idea/idea"
          },
          {
            "items": [
              {
                "text": "IDEA导入发布Eclipse项目Resin版",
                "link": "/blogs/ide/idea/IDEA导入发布Eclipse项目Resin版"
              },
              {
                "text": "IDEA导入发布Eclipse项目Tomcat版",
                "link": "/blogs/ide/idea/IDEA导入发布Eclipse项目Tomcat版"
              },
              {
                "text": "IDEA项目乱码问题设置",
                "link": "/blogs/ide/idea/IDEA项目乱码问题设置"
              }
            ]
          },
          {
            "text": "eclipse"
          },
          {
            "items": [
              {
                "text": "MyEclipse常用配置",
                "link": "/blogs/ide/eclipse/MyEclipse常用配置"
              },
              {
                "text": "MyEclipse常用配置",
                "link": "/blogs/ide/eclipse/MyEclipse常用配置"
              }
            ]
          }
        ]
      }
    ],
    "/blogs/about/": [
      {
        "text": "关于作者",
        "collapsible": true,
        "collapsed": true,
        "activeMatch": "/about/",
        "items": [
          {
            "text": "关于作者",
            "link": "/blogs/about/about"
          }
        ]
      }
    ]
  },
  "footer": {
    "message": "基于MIT协议发布.",
    "copyright": "京ICP备2024078217号 版权所有 © 2024-今"
  }
}

Page Data

{
  "title": "IDEA",
  "description": "",
  "frontmatter": {
    "outline": "deep"
  },
  "headers": [],
  "relativePath": "blogs/ide/idea/idea.md",
  "filePath": "blogs/ide/idea/idea.md",
  "lastUpdated": 1720086125000
}

Page Frontmatter

{
  "outline": "deep"
}

More

Check out the documentation for the full list of runtime APIs.

基于MIT协议发布.