Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DocCのドキュメントをGithub Pagesで公開する
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Shin Yamamoto
October 26, 2021
Programming
720
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
DocCのドキュメントをGithub Pagesで公開する
Shin Yamamoto
October 26, 2021
More Decks by Shin Yamamoto
See All by Shin Yamamoto
Meet CoreDevice and devicectl
scenee
0
630
SwiftライブラリのObjC対応における落とし穴と回避策
scenee
0
340
Testing a constraint-based layout of UIView
scenee
1
1.3k
Playing Sheet presentation style on iOS 13
scenee
0
690
Fluid Interfacesの実践
scenee
4
1.7k
Introducing Relax
scenee
0
620
Potatotips#7: Box C String Tip
scenee
0
2.8k
Other Decks in Programming
See All in Programming
dRuby over BLE
makicamel
2
390
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
920
そのテスト、説明できますか?~LWテスト戦略FW~のご紹介
nakahara
0
160
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
740
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.8k
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
Vite+ Unified Toolchain for the Web
naokihaba
0
340
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
150
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
570
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
610
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.3k
Featured
See All Featured
Statistics for Hackers
jakevdp
799
230k
Being A Developer After 40
akosma
91
590k
Done Done
chrislema
186
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Are puppies a ranking factor?
jonoalderson
1
3.6k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
620
Chasing Engaging Ingredients in Design
codingconduct
0
230
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Transcript
2021 Oct 26 DocCͷυΩϡϝϯτΛ Github PagesͰެ։͢Δ Yappli Ͷ΄Γ΄Γ For Mobile
Engineer @scenee
DocC
Documentation Compiler
Documentation Compiler /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/docc
DocC Documentation Compiler • Xcodeͱ౷߹͞ΕͨυΩϡϝϯτπʔϧ • In-source documentation: Doc comment
and Documentation catalog • ReferenceɾArticles ɾTutorials • Swift Libraries(Frameworks/Packages)ͷΈରԠ • Xcode Documentation WindowͱΣϒͰදࣔ • Open source: github.com/apple/swift-docc
None
None
None
None
None
DocC Archive
DocC Archive Vue.js
DocC Archive
DocCͷυΩϡϝϯτΛ WebͰެ։͢Δ
.htaccess https://developer.apple.com/documentation/Xcode/distributing-documentation-to-external-developers
🤷 https://developer.apple.com/documentation/Xcode/distributing-documentation-to-external-developers
DocCͷυΩϡϝϯτΛ Github Pages Ͱެ։͢Δ
None
Github Pages Ͱ ެ։Ͱ͖·ͤΜͰͨ͠
Github PagesͰެ։Ͱ͖ͳ͍😩 • DocCͷαΠτɺVuejsͷSingle-page application(SPA) • Github PagesͰɺRewrite ruleΛઃఆͰ͖ͳ͍ •
ύε͕ݻఆ example.com/documentation/package_name • Rewrite͕ඞਢ
None
None
DocCͷυΩϡϝϯτΛ GitHub PagesͰެ։͢Δ
DocCͷυΩϡϝϯτΛ Firebase HostingͰެ։͢Δ
Firebase HostingͰ؆୯ 🎉 • ެ։ίϯςϯπΛDocC Archiveʹ͢Δͩ ͚ • σϑΥϧτͷRewriteઃఆͰOK •
Redirectઃఆ؆୯
floating-panel.web.app
ݱঢ়ͷ՝ Swift DocC Render • ੩తϑΝΠϧαʔόʔͰϗεςΟϯάͰ͖ͳ͍ • ϧʔςΟϯά͕ϧʔτύε͔Βݻఆ͞Ε͍ͯΔ(ઃఆͰ͖ͳ͍) • swift-docc-render:
github.com/apple/swift-docc-render/src/routes.js • 1ͭͷαΠτͰෳόʔδϣϯͷϗετςΟϯά͕Ͱ͖ͳ͍ Announcing Swift-DocC forums.swift.org/t/announcing-swift-docc/52797
Wrap up DocCͰੜͨ͠υΩϡϝϯτΛGithub PagesͰެ։͢Δ • DocC: Xcodeͱ౷߹͞ΕͨυΩϡϝϯτπʔϧ • υΩϡϝϯτΣϒެ։Ͱ͖Δ •
Firebase HostingͰ؆୯ʹެ։Ͱ͖Δ • Open SourceͰͷվળʹظ
References • DocC developer.apple.com/documentation/DocC • Swift-DocC: swift.org/blog/swift-docc/ • Meet DocC
documentation in Xcode - WWDC21 developer.apple.com/videos/play/ wwdc2021-10166 • Elevate your DocC documentation in Xcode - WWDC21 developer.apple.com/videos/play/ wwdc2021-10167 • Host and automate your DocC documentation - WWDC21 developer.apple.com/videos/play/ wwdc2021-10236 • Build interactive tutorials using DocC - WWDC21 developer.apple.com/videos/play/ wwdc2021-10235