$30 off During Our Annual Pro Sale. View details »

SphinxCon JP 2015 - Sphinxで電子書籍を書こうと色々やってみた

momijiame
November 24, 2015

SphinxCon JP 2015 - Sphinxで電子書籍を書こうと色々やってみた

momijiame

November 24, 2015
Tweet

More Decks by momijiame

Other Decks in Technology

Transcript

  1. 4QIJOYͰిࢠॻ੶Λॻ͜͏ͱ ৭ʑ΍ͬͯΈͨ 4QIJOY$PO+1 !NPNJKJBNF

  2. ͓લɺ୭Α ໊લ!NPNJKJBNF ΋Έ͋͡Ί  ࢓ࣄͱ͋Δ*41Ͱಇ͘ϓϩάϥϚ ϒϩάIUUQCMPHBNFEBNBKQ Ωʔϫʔυ044 1ZUIPO 5$1*1 6OJYͳͲ

  3. 4QIJOYΛ࢖͏ʹࢸͬͨܦҢ

  4. ൃ୺ ʮ1ZUIPOͷϕετϓϥΫςΟε Λ·ͱΊͨຊ͕ॻ͖͍ͨʂʯ

  5. ໨ඪ ೖ໳ॻͷ࣍ʹಡΜͰ࢓ࣄʹඞཁͳ ϊ΢ϋ΢͕Ұ௨ΓಘΒΕΔຊΛॻ͘

  6. Ͳ͜Ͱग़͢ʁ

  7. ,JOEMF%JSFDU1VCMJTIJOH ࣗ࡞ͷిࢠॻ੶Λ"NB[POͰ ചΓग़͢͜ͱ͕Ͱ͖Δ

  8. ԿΛ࢖ͬͯॻ͘ʁ

  9. ΋ͪΖΜ 4QIJOY

  10. 8PSE %0$·ͨ͸%0$9  )5.- ;*1ɺ)5.ɺ·ͨ͸)5.-  .0#* .0#*  F1VC

    &16#  35' ϦονςΩετϑΥʔϚοτ  595 ϓϨʔϯςΩετ  "EPCF1%' 1%'  ,JOEMF1BDLBHF'PSNBU ,1' ,%1ରԠϑΥʔϚοτ ग़యIUUQTLEQBNB[PODPKQIFMQ UPQJD*E"('6')*:(72 4QIJOYͰग़ྗՄೳʂ ܅ʹܾΊͨʂ
  11. จষͷ؅ཧ͸ʁ

  12. #JUCVDLFU ϓϥΠϕʔτϦϙδτϦΛ ແྉͰ࡞Δ͜ͱ͕Ͱ͖Δ

  13. ํ਑͸ܾ·ͬͨ΋ͷͷʜ ͜ͷ࣌఺Ͱ4QIJOYͷ ܦݧ஋͸શ͘ͷθϩͩͬͨ

  14. ॳΊʹ΍ͬͨ͜ͱ 4QIJOYʹ͍ͭͯॻ͔Εͨॻ੶Λ୳͢ 8FCͷ·ͱ·ͬͨυΩϡϝϯτΛ୳͢

  15. ॻ੶ ʮ4QIJOYΛ͸͡ΊΑ͏ʯ 0`3FJMMZ&CPPL Ұ௨Γͷ৘ใ͕ࡌ͍ͬͯΔ ిࢠॻ੶ʹؔ͢Δهड़΋͋Γ

  16. 8FC 4QIJOY6TFSTKQ άάΔͱେମ͜͜ʹͨͲΓண͘ SF4USVDUVSFE5FYUೖ໳ʹԿ౓΋͓ੈ࿩ʹͳΔ

  17. ࢼߦࡨޡ

  18. F1VCΛग़ྗ͢Δʹ͸ʁ TQIJOYRVJDLTUBSUίϚϯυͰ FQVCCVJMEFSΛ༗ޮʹ͢Δ

  19. FQVCCVJMEFS Sphinx can also add configuration for epub output: >

    Do you want to use the epub builder (y/n) [n]: y ͜Ε͚ͩͰ NBLFFQVC Ͱ͖ΔΑ͏ʹͳΔ
  20. F1VC

  21. ϑΝΠϧΛͲ͏෼ׂ͠Α͏ʁ ҰຕͷSTUϑΝΠϧͰॻ͚͹ ૣʑʹഁ୼͢Δͷ͸໌Β͔

  22. UPDUSFF ষ͝ͱʹσΟϨΫτϦ Λ༻ҙͨ͠ JOEFYSTUΛಡΈࠐΉ JOEFYSTU

  23. JODMVEF 3F45Ͱॻ͔Εͨ ςΩετϑΝΠϧΛ ಡΈࠐΉ ֦ுࢠ͕STUͩͱ ಡΈࠐΊͳ͍఺ʹ ஫ҙ͕ඞཁʂ

  24. ຊจҎ֎ΛͲ͏؅ཧ͢Δʁ ྫ͑͹εχϖοτ΍୺຤ͷ ૢ࡞ϩάΛͲ͏ѻ͑͹͍͍͔

  25. DPEFCMPDL ຊจʹϕλॻ͖͢Δ ͜ͱʹͳΔͷͰ ϝϯςφϯεੑ͕ѱ͍ εχϖοτΛ ຊจͷதʹॻ͚Δ

  26. MJUFSBMJODMVEF εχϖοτ༻ͷσΟϨΫτϦ ϑΝΠϧ͕෼͔ΕΔͷͰ ςετͳͲ΋ॻ͖΍͍͢

  27. ࡞ۀޮ཰͕ѱ͗͢Δ݅ ιʔεϑΝΠϧΛฤू NBLFTJOHMFIUNM ϒϥ΢βʹϑΥʔΧεҠಈ ϒϥ΢βΛߋ৽ͯ֬͠ೝ

  28. ͜ͷखॱɺԿ͔ʹࣅ͍ͯΔʁ 8FCΞϓϦέʔγϣϯͷ ϑϩϯτΤϯυ։ൃͱͦͬ͘Γ

  29. ϑϩϯτΤϯυ։ൃͷ஌ܙ +BWB4DSJQUͷ λεΫϥϯφʔ (SVOU (VMQ  Λ࢖ͬͯࣗಈԽ͢Δ

  30. Ұ࿈ͷ࡞ۀΛ(VMQλεΫԽ σϞ͠·͢

  31. Μʜʁ TQIJOYBVUPCVJMEʜ

  32. “Watch a Sphinx directory and rebuild the documentation when a

    change is detected. Also includes a livereload enabled web server.” ᐌ͘ IUUQTQZQJQZUIPOPSHQZQJTQIJOYBVUPCVJME
  33. TQIJOYBVUPCVJME σϞ͠·͢

  34. ະղܾͷ՝୊ ৘ใ͓଴ͪͯ͠·͢ʂ ஈམͷࣈԼ͕͍͛ͨ͠ʜ

  35. ·ͱΊ ిࢠॻ੶͕ॻ͖ͨͯ͘4QIJOYͰ৭ʑ΍ͬͯΈͨ ॻ੶l4QIJOYΛ͸͡ΊΑ͏zΛಡ΋͏ 8FCl4QIJOY6TFSTKQzΛݟΑ͏ πʔϧTQIJOYBVUPCVJMEΛ࢖͓͏ ຊͷਐ௙͘Β͍

  36. ͋Γ͕ͱ͏͍͟͝·ͨ͠

  37. ͓·͚

  38. ͝ଘ஌Ͱ͔͢ʁ

  39. ߍਖ਼πʔϧͭͬͨ͘ LBOKJMJOU IUUQTHJUIVCDPNNPNJKJBNFLBOKJMJOU

  40. HSFQTFE͡Όμϝͳͷʁ ୯७ͳHSFQͩͱʮࣄʯΛݕࡧ͢Δͱ ʮࣄ࣮ʯͱ͔΋Ҿ͔͔ͬͬͯ͠·͏ ʮࣄ࣮ʯΛʮ͜ͱ࣮ʯʹ͸։͖ͨ͘ͳ͍

  41. ܗଶૉղੳ͕ඞཁ ܗଶૉ෼ੳϥΠϒϥϦͱͯ͠ 1VSF1ZUIPOͷKBOPNFΛ࢖༻

  42. LBOKJMJOU σϞ͠·͢