Coder Social home page Coder Social logo

github_page_generator's Introduction

起動とか

cargo-make を入れる.

  • cargo make generate-dev: ./build に dev 版を生成する
  • cargo make generate: ./build に release 版を生成する
  • cargo make serve: localhost:8080 でサーブする
  • cargo make watch: 監視しつつ生成しなおす
  • cargo make serve-watch: 監視しつつ生成しなおしつつ serve も.
  • cargo make generate-release: ./MiSawa.github.io に生成する

front matter に書くこと

problem:
    round: SRM650
    level: [Div1Easy, Div1Medium, Div1Hard]
    rd: 16314
    pm: 13669
    name: TaroFillingAStringDiv1
    url: http://community.topcoder.com/stat?c=problem_statement&pm=13669&rd=16314
date: 2015/03/03
tags: [TopCoder, 数え上げ, 算数]
description: meta タグの description に入れたい文
source_code: ./src/AC_TaroFillingAStringDiv1.cc

とか. source_code は省略すると見に行かない. date は解いた日. stateACWA かとかも入れるかなぁ.

github_page_generator's People

Contributors

dependabot[bot] avatar misawa avatar

Watchers

 avatar

github_page_generator's Issues

page から resource へ

なんかそうしたほうがいいっぽい? よくわからぬ.
tag.rb とか, page 系の変数名使いまくっているのでアレ.

KaTeX に移行

速いらしいし。
多分 \def とか変えなきゃいけない。

tweetボタン付ける

各ページに, なんかそのページに関するコメントをツイート出来るボタンを付けたいなぁ.
自分以外が押すことはないだろうけど.

タイトルの取得漏れ

現状 ,tag のページや, 各 index.html.erb で, link_to title, page.url 時にタイトルが取得できていない問題がある.
bundle exec middleman build した時の生成順を見ればわかるが, tagpage の方が先に生成されてしまい, レイアウトの読み込み時に動的に設定しているタイトルが取れていないというのが原因.

middleman-navtree とか見ても, いい感じの解決策は見当たらなかった.
middleman-core の中を見るべきかも. 特に sitemap とか?

そもそも, レイアウトでタイトルを設定すべきでない説もある.

middleman v4 の collection を利用すれば出来る可能性もあるし, middleman の中身を直接呼ぶのはバージョンアップで死す可能性があるので, とにかく v4 への移行を進めるべき.

lighthouse 先生に従う

  • jQuery をアップデート
    • そもそも消して <details> で置き換える?
  • document.write(...) をしない
    • frontmatter で KaTeX 必要か示すとか?
    • そもそも今は全部に埋め込んでたかもしれない
  • <html> 要素に lang= を足す
  • <meta> が無い
    • frontmatter で足すか…

Update middleman + kramdown

Need fixes for kramdown hacks... I suppose. At least GitHub flavored markdown parser (which the current parser is based on) is in another repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.