{"id":271,"date":"2018-07-22T23:09:37","date_gmt":"2018-07-22T14:09:37","guid":{"rendered":"https:\/\/blog.daichang.me\/?p=271"},"modified":"2018-07-22T23:09:37","modified_gmt":"2018-07-22T14:09:37","slug":"github-enterprise-%e3%81%ae%e6%b4%bb%e7%94%a8%e3%81%a8-mkdocs-%e3%81%ab%e3%82%88%e3%82%8b-web-page-%e4%bd%9c%e6%88%90","status":"publish","type":"post","link":"https:\/\/blog.daichang.me\/?p=271","title":{"rendered":"GitHub Enterprise \u306e\u6d3b\u7528\u3068 MkDocs \u306b\u3088\u308b Web page \u4f5c\u6210"},"content":{"rendered":"<p>\u793e\u5185\u3067\u3082\u30af\u30ed\u30fc\u30ba\u30c9\u306a GitHub \u74b0\u5883\u3092\u4f7f\u3048\u308b GitHub Enterprise (GHE) \u306f\u7d50\u69cb\u666e\u53ca\u3057\u3066\u304d\u305f\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<br \/>\nGHE \u3092\u30af\u30ed\u30fc\u30ba\u30c9\u306a GitHub \u3068\u3057\u3066\u4f7f\u3046\u5206\u306b\u306f\u554f\u984c\u306a\u304b\u3063\u305f\u3067\u3059\u304c\u3001GitHub Gist Enterprise \u3084 GitHub Pages Enterprise \u3068\u3057\u3066\u4f7f\u3046\u969b\u306b\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u304b\u304c\u3088\u304f\u89e3\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u8abf\u3079\u305f\u30e1\u30e2\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<blockquote><p>GitHub Gist Enterprise<\/p><\/blockquote>\n<p>GHE \u306e URL \u3092 <code>https:\/\/ghe.example.jp\/<\/code> \u3068\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u3001GitHub Gist Enterprise \u306f <code>https:\/\/ghe.example.jp\/gist\/<\/code> \u3042\u308b\u3044\u306f\u3001<code>https:\/\/gist.ghe.example.jp\/<\/code> \u3068\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5f8c\u8005\u306f\u5c02\u7528\u306e\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u304c\u5207\u3089\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u9650\u308a\u307e\u3059\u306e\u3067\u3001\u5927\u4f53\u306f\u524d\u8005\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>GitHub Pages Enterprise<\/p><\/blockquote>\n<p>\u540c\u3058\u304f GHE \u306e URL \u3092 <code>https:\/\/ghe.example.jp\/<\/code> \u3068\u3057\u307e\u3059\u3002\u307e\u305f\u3001GHE \u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092 <code>daisuke<\/code> \u3068\u3057\u3001\u516c\u958b\u3059\u308b GHE \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\u3092 <code>test_page<\/code> \u3068\u3057\u307e\u3059\u3002<br \/>\n\u3059\u308b\u3068\u3001<code>https:\/\/ghe.example.jp\/pages\/daisuke\/test_page\/<\/code> \u3068\u3044\u3046 URL \u3067 GitHub Pages Enterprise \u3068\u3057\u3066 Web Page \u304c\u516c\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3068\u304d\u306f <a href=\"https:\/\/www.mkdocs.org\/\">MkDocs<\/a> \u3092\u4f7f\u3063\u3066 Page \u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>MkDocs \u306b\u3088\u308b GitHub Pages Enterprise \u3067\u306e Web page \u4f5c\u6210<\/p><\/blockquote>\n<p><a href=\"https:\/\/www.mkdocs.org\/\">MkDocs<\/a> \u306f\u4e0b\u8a18\u306e\u3068\u304a\u308a pip (Python) \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u7c21\u5358\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nMkDocs \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u4e0d\u660e\u306a\u70b9\u304c\u3042\u308c\u3070<a href=\"https:\/\/www.mkdocs.org\/#installation\">\u3053\u3061\u3089<\/a>\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prettyprint linenums\">pip install mkdocs<\/pre>\n<p>MkDocks \u3067\u30da\u30fc\u30b8\u3092\u4f5c\u308b\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304d\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u307e\u3067\u884c\u304d\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u5bfe\u8c61\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">mkdocs new test_page<\/pre>\n<p>\u3053\u306e <code>test_page<\/code> \u306e\u90e8\u5206\u306f GHE \u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u540d\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u305d\u3046\u3059\u308b\u3068\u3001<code>test_page<\/code> \u306e\u4e0b\u306b <code>mkdocs.yml<\/code> \u3068\u3044\u3046 MkDocs \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068 <code>docs<\/code> \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<br \/>\n\u307e\u305a\u306f\u3001<code>docs<\/code> \u306e\u4e2d\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u306a\u308b Markdown \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u305f\u3089\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">mkdocs build<\/pre>\n<p>\u30d3\u30eb\u30c9\u304c\u5b8c\u6210\u3057\u305f\u3089\u3001<code>docs<\/code> \u3068\u540c\u3058\u968e\u5c64\u306b <code>site<\/code> \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3067\u304d\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u3001Web \u516c\u958b\u3059\u308b\u5834\u5408\u306b\u306f\u3053\u3061\u3089\u306e\u4e2d\u8eab\u3092\u307e\u308b\u3063\u3068\u516c\u958b\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001GitHub Pages (Enterprise) \u3067\u516c\u958b\u3057\u305f\u3044\u5834\u5408\u306b\u306f <code>test_page<\/code> \u3092\u307e\u308b\u3063\u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3042\u3052\u305f\u5f8c\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"prettyprint linenums\">mkdocs gh-deploy<\/pre>\n<p>\u3059\u308b\u3068 gh-pages \u30d6\u30e9\u30f3\u30c1\u306b\u30d3\u30eb\u30c9\u3057\u305f\u7d50\u679c\u3092 push \u3057\u3066\u304f\u308c\u3001Github Pages (Enterprise) \u3068\u3057\u3066 Web \u304c\u516c\u958b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059!!!<\/p>\n<p>\u307e\u305f\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30de\u30c6\u30ea\u30a2\u30eb\u30c7\u30b6\u30a4\u30f3\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u306a\u3069\u3001\u8272\u3005\u3068\u4f7f\u3044\u52dd\u624b\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u662f\u975e\u3001\u8272\u3005\u3068\u89e6\u3063\u3066\u8cb0\u3048\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">pip install mkdocs-material<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u793e\u5185\u3067\u3082\u30af\u30ed\u30fc\u30ba\u30c9\u306a GitHub \u74b0\u5883\u3092\u4f7f\u3048\u308b GitHub Enterprise (GHE) \u306f\u7d50\u69cb\u666e\u53ca\u3057\u3066\u304d\u305f\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002 GHE \u3092\u30af\u30ed\u30fc\u30ba\u30c9\u306a GitHub \u3068\u3057\u3066\u4f7f\u3046\u5206\u306b\u306f\u554f\u984c\u306a\u304b\u3063\u305f\u3067\u3059\u304c\u3001GitHub [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/blog.daichang.me\/?p=271\">\u7d9a\u304d\u3092\u8aad\u3080&#8230;<span class=\"screen-reader-text\"> from GitHub Enterprise \u306e\u6d3b\u7528\u3068 MkDocs \u306b\u3088\u308b Web page \u4f5c\u6210<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":275,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[23],"class_list":["post-271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-daily-life","category-tech","tag-tips"],"_links":{"self":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=271"}],"version-history":[{"count":0,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/271\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}