News: generate "new documentation" links from slug

pull/1324/head
Simon Legner 4 years ago
parent 0d40c767cc
commit a592713486

@ -1,31 +1,15 @@
[ [
{ { "date": "2020-11-14", "added": ["pytorch", "spring_boot"] },
"date": "2020-11-14",
"text": "Newly added documentations: <a href=\"/pytorch/\">PyTorch</a>, <a href=\"/spring_boot/\">Spring Boot</a>"
},
{
"date": "2020-11-14",
"text": "Updated documentations: <a href=\"/angular/\">Angular</a>, <a href=\"/angularjs/\">Angular.js</a>, <a href=\"/ansible/\">Ansible</a>, <a href=\"/cmake/\">CMake</a>, <a href=\"/codeigniter/\">CodeIgniter</a>, <a href=\"/crystal/\">Crystal</a>, <a href=\"/css/\">CSS</a>, <a href=\"/elixir/\">Elixir</a>, <a href=\"/go/\">Go</a>, <a href=\"/godot/\">Godot</a>, <a href=\"/haxe/\">Haxe</a>, <a href=\"/html/\">HTML</a>, <a href=\"/javascript/\">JavaScript</a>, <a href=\"/jest/\">Jest</a>, <a href=\"/laravel/\">Laravel</a>, <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/lua/\">Lua</a>, <a href=\"/nginx/\">nginx</a>, <a href=\"/node/\">Node.js</a>, <a href=\"/openjdk/\">OpenJDK</a>, <a href=\"/postgresql/\">PostgreSQL</a>, <a href=\"/pug/\">Pug</a>, <a href=\"/python/\">Python</a>, <a href=\"/rails/\">Rails</a>, <a href=\"/react/\">React</a>, <a href=\"/ruby/\">Ruby</a>, <a href=\"/sqlite/\">SQLite</a>, <a href=\"/svg/\">SVG</a>, <a href=\"/xslt_xpath/\">XSLT + XPath</a>"
},
{ {
"date": "2020-01-13", "date": "2020-01-13",
"text": "New “Automatic” theme: match your browser or system dark mode setting. <a href=\"/settings\">Enable it in preferences</a>." "text": "New “Automatic” theme: match your browser or system dark mode setting. <a href=\"/settings\">Enable it in preferences</a>."
}, },
{ { "date": "2020-01-13", "added": ["gnuplot"] },
"date": "2020-01-13", { "date": "2019-10-26", "added": ["sequelize"] },
"text": "New documentation: <a href=\"/gnuplot/\">Gnuplot</a>" { "date": "2019-10-20", "added": ["mariadb", "reactivex"] },
},
{
"date": "2019-10-26",
"text": "New documentation: <a href=\"/sequelize/\">Sequelize</a>"
},
{
"date": "2019-10-20",
"text": "New documentations: <a href=\"/mariadb/\">MariaDB</a> and <a href=\"/reactivex/\">ReactiveX</a>"
},
{ {
"date": "2019-09-02", "date": "2019-09-02",
"text": "New documentations added over the last 3 weeks: <a href=\"/scala~2.13_library/\">Scala</a>, <a href=\"/wordpress/\">WordPress</a>, <a href=\"/cypress/\">Cypress</a>, <a href=\"/saltstack/\">SaltStack</a>, <a href=\"/composer/\">Composer</a>, <a href=\"/vue_router/\">Vue Router</a>, <a href=\"/vuex/\">Vuex</a>, <a href=\"/pony/\">Pony</a>, <a href=\"/rxjs/\">RxJS</a>, <a href=\"/octave/\">Octave</a>, <a href=\"/trio/\">Trio</a>, <a href=\"/django_rest_framework/\">Django REST Framework</a>, <a href=\"/enzyme/\">Enzyme</a> and <a href=\"/gnu_cobol/\">GnuCOBOL</a>" "text": "New documentations added over the last 3 weeks: <a href=\"/scala~2.13_library/\">Scala</a>, <a href=\"/wordpress/\">WordPress</a>, <a href=\"/cypress/\">Cypress</a>, <a href=\"/saltstack/\">SaltStack</a>, <a href=\"/composer/\">Composer</a>, <a href=\"/vue_router/\">Vue Router</a>, <a href=\"/vuex/\">Vuex</a>, <a href=\"/pony/\">Pony</a>, <a href=\"/rxjs/\">RxJS</a>, <a href=\"/octave/\">Octave</a>, <a href=\"/trio/\">Trio</a>, <a href=\"/django_rest_framework/\">Django REST Framework</a>, <a href=\"/enzyme/\">Enzyme, gnu_cobol/\">GnuCOBOL</a>"
}, },
{ {
"date": "2019-07-21", "date": "2019-07-21",
@ -35,202 +19,85 @@
"date": "2019-07-19", "date": "2019-07-19",
"text": "Replaced the AppCache with a Service Worker (which makes DevDocs an installable PWA) and fixed layout preferences on Firefox." "text": "Replaced the AppCache with a Service Worker (which makes DevDocs an installable PWA) and fixed layout preferences on Firefox."
}, },
{ { "date": "2018-09-23", "added": ["puppeteer", "handlebars"] },
"date": "2018-09-23", { "date": "2018-08-12", "added": ["dart", "qt"] },
"text": "New documentations: <a href=\"/puppeteer/\">Puppeteer</a> and <a href=\"/handlebars/\">Handlebars.js</a>" { "date": "2018-07-29", "added": ["bash", "graphite", "pygame"] },
}, { "date": "2018-07-08", "added": ["leaflet", "terraform", "koa"] },
{
"date": "2018-08-12",
"text": "New documentations: <a href=\"/dart/\">Dart</a> and <a href=\"/qt/\">Qt</a>"
},
{
"date": "2018-07-29",
"text": "New documentations: <a href=\"/bash/\">Bash</a>, <a href=\"/graphite/\">Graphite</a> and <a href=\"/pygame/\">Pygame</a>"
},
{
"date": "2018-07-08",
"text": "New documentations: <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/terraform/\">Terraform</a> and <a href=\"/koa/\">Koa</a>"
},
{ {
"date": "2018-03-26", "date": "2018-03-26",
"text": "DevDocs is joining the freeCodeCamp community. Read the announcement <a href=\"https://medium.freecodecamp.org/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6\" target=\"_blank\">here</a>." "text": "DevDocs is joining the freeCodeCamp community. Read the announcement <a href=\"https://medium.freecodecamp.org/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6\" target=\"_blank\">here</a>."
}, },
{ { "date": "2018-02-04", "added": ["babel", "jekyll", "jsdoc"] },
"date": "2018-02-04", { "date": "2017-11-26", "added": ["bluebird", "eslint", "homebrew"] },
"text": "New documentations: <a href=\"/babel/\">Babel</a>, <a href=\"/jekyll/\">Jekyll</a> and <a href=\"/jsdoc/\">JSDoc</a>"
},
{
"date": "2017-11-26",
"text": "New documentations: <a href=\"/bluebird/\">Bluebird</a>, <a href=\"/eslint/\">ESLint</a> and <a href=\"/homebrew/\">Homebrew</a>"
},
{ {
"date": "2017-11-18", "date": "2017-11-18",
"text": "Added print & PDF stylesheet.\nFeedback welcome on <a href=\"https://twitter.com/DevDocs\" target=\"_blank\" rel=\"noopener\">Twitter</a> and <a href=\"https://github.com/freeCodeCamp/devdocs\" target=\"_blank\" rel=\"noopener\">GitHub</a>." "text": "Added print & PDF stylesheet.\nFeedback welcome on <a href=\"https://twitter.com/DevDocs\" target=\"_blank\" rel=\"noopener\">Twitter, ttps://github.com/freeCodeCamp/devdocs\" target=\"_blank\" rel=\"noopener\">GitHub</a>."
}, },
{ {
"date": "2017-09-10", "date": "2017-09-10",
"text": "<a href=\"/settings\">Preferences</a> can now be exported and imported." "text": "<a href=\"/settings\">Preferences</a> can now be exported and imported."
}, },
{ { "date": "2017-09-03", "added": ["d", "nim", "vulkan"] },
"date": "2017-09-03", { "date": "2017-07-23", "added": ["godot"] },
"text": "New documentations: <a href=\"/d/\">D</a>, <a href=\"/nim/\">Nim</a> and <a href=\"/vulkan/\">Vulkan</a>" { "date": "2017-06-04", "added": ["electron", "pug", "falcon"] },
}, { "date": "2017-05-14", "added": ["jest", "jasmine", "liquid"] },
{ { "date": "2017-04-30", "added": ["openjdk"] },
"date": "2017-07-23",
"text": "New documentation: <a href=\"/godot/\">Godot</a>"
},
{
"date": "2017-06-04",
"text": "New documentations: <a href=\"/electron/\">Electron</a>, <a href=\"/pug/\">Pug</a>, and <a href=\"/falcon/\">Falcon</a>"
},
{
"date": "2017-05-14",
"text": "New documentations: <a href=\"/jest/\">Jest</a>, <a href=\"/jasmine/\">Jasmine</a> and <a href=\"/liquid/\">Liquid</a>"
},
{
"date": "2017-04-30",
"text": "New documentation: <a href=\"/openjdk/\">OpenJDK</a>"
},
{ {
"date": "2017-02-26", "date": "2017-02-26",
"text": "Refreshed design.\nAdded <a href=\"/settings\">Preferences</a>." "text": "Refreshed design.\nAdded <a href=\"/settings\">Preferences</a>."
}, },
{ { "date": "2017-01-22", "added": ["http"] },
"date": "2017-01-22", { "date": "2016-12-04", "added": ["sqlite", "codeception", "codeceptjs"] },
"text": "New <a href=\"/http/\">HTTP</a> documentation (thanks Mozilla)" { "date": "2016-11-20", "added": ["yarn", "immutable", "async"] },
}, { "date": "2016-10-10", "added": ["scikit_learn", "statsmodels"] },
{ { "date": "2016-09-18", "added": ["pandas", "twig"] },
"date": "2016-12-04", { "date": "2016-09-05", "added": ["fish", "bottle", "scikit_image"] },
"text": "New documentations: <a href=\"/sqlite/\">SQLite</a>, <a href=\"/codeception/\">Codeception</a> and <a href=\"/codeceptjs/\">CodeceptJS</a>" { "date": "2016-08-07", "added": ["docker"] },
}, { "date": "2016-07-31", "added": ["bootstrap~4"] },
{ { "date": "2016-07-24", "added": ["julia", "crystal", "redux"] },
"date": "2016-11-20", { "date": "2016-07-03", "added": ["cmake", "matplotlib"] },
"text": "New documentations: <a href=\"/yarn/\">Yarn</a>, <a href=\"/immutable/\">Immutable.js</a> and <a href=\"/async/\">Async</a>" { "date": "2016-06-19", "added": ["love"] },
}, { "date": "2016-06-12", "added": ["angular"] },
{ { "date": "2016-06-05", "added": ["kotlin", "padrino"] },
"date": "2016-10-10", { "date": "2016-04-24", "added": ["numpy", "apache_pig"] },
"text": "New documentations: <a href=\"/scikit_learn/\">scikit-learn</a> and <a href=\"/statsmodels/\">Statsmodels</a>" { "date": "2016-04-17", "added": ["perl"] },
},
{
"date": "2016-09-18",
"text": "New documentations: <a href=\"/pandas/\">pandas</a> and <a href=\"/twig/\">Twig</a>"
},
{
"date": "2016-09-05",
"text": "New documentations: <a href=\"/fish/\">Fish</a>, <a href=\"/bottle/\">Bottle</a> and <a href=\"/scikit_image/\">scikit-image</a>"
},
{
"date": "2016-08-07",
"text": "New documentation: <a href=\"/docker/\">Docker</a>"
},
{
"date": "2016-07-31",
"text": "New documentations: <a href=\"/bootstrap~3/\">Bootstrap 3</a> and <a href=\"/bootstrap~4/\">Bootstrap 4</a>"
},
{
"date": "2016-07-24",
"text": "New documentations: <a href=\"/julia/\">Julia</a>, <a href=\"/crystal/\">Crystal</a> and <a href=\"/redux/\">Redux</a>"
},
{
"date": "2016-07-03",
"text": "New documentations: <a href=\"/cmake/\">CMake</a> and <a href=\"/matplotlib/\">Matplotlib</a>"
},
{
"date": "2016-06-19",
"text": "New documentation: <a href=\"/love/\">L&Ouml;VE</a>"
},
{
"date": "2016-06-12",
"text": "New documentation: <a href=\"/angular/\">Angular 2</a>"
},
{
"date": "2016-06-05",
"text": "New documentations: <a href=\"/kotlin/\">Kotlin</a> and <a href=\"/padrino/\">Padrino</a>"
},
{
"date": "2016-04-24",
"text": "New documentations: <a href=\"/numpy/\">NumPy</a> and <a href=\"/apache_pig/\">Apache Pig</a>"
},
{
"date": "2016-04-17",
"text": "New documentation: <a href=\"/perl/\">Perl</a>"
},
{ {
"date": "2016-04-10", "date": "2016-04-10",
"text": "New documentations: <a href=\"/browser_support_tables/\">Support tables (caniuse.com)</a>, <a href=\"/gcc/\">GCC</a> and <a href=\"/gnu_fortran/\">GNU Fortran</a>" "added": ["browser_support_tables", "gcc", "gnu_fortran"]
},
{
"date": "2016-03-27",
"text": "New documentation: <a href=\"/typescript/\">TypeScript</a>"
},
{
"date": "2016-03-06",
"text": "New documentations: <a href=\"/tensorflow/\">TensorFlow</a>, <a href=\"/haxe/\">Haxe</a> and <a href=\"/ansible/\">Ansible</a>"
}, },
{ "date": "2016-03-27", "added": ["typescript"] },
{ "date": "2016-03-06", "added": ["tensorflow", "haxe", "ansible"] },
{ {
"date": "2016-02-28", "date": "2016-02-28",
"text": "New documentations: <a href=\"/codeigniter/\">CodeIgniter</a>, <a href=\"/nginx_lua_module/\">nginx Lua Module</a> and <a href=\"/influxdata/\">InfluxData</a>" "added": ["codeigniter", "nginx_lua_module", "influxdata"]
},
{
"date": "2016-02-15",
"text": "New documentations: <a href=\"/cakephp/\">CakePHP</a>, <a href=\"/chef/\">Chef</a> and <a href=\"/ramda/\">Ramda</a>"
},
{
"date": "2016-01-31",
"text": "New documentations: <a href=\"/erlang/\">Erlang</a> and <a href=\"/tcl_tk/\">Tcl/Tk</a>"
}, },
{ "date": "2016-02-15", "added": ["cakephp", "chef", "ramda"] },
{ "date": "2016-01-31", "added": ["erlang", "tcl_tk"] },
{ {
"date": "2016-01-24", "date": "2016-01-24",
"text": "&ldquo;Multi-version support&rdquo; has landed!" "text": "&ldquo;Multi-version support&rdquo; has landed!"
}, },
{ { "date": "2015-11-22", "added": ["phoenix", "dojo", "relay", "flow"] },
"date": "2015-11-22", { "date": "2015-11-08", "added": ["elixir", "vagrant"] },
"text": "New documentations: <a href=\"/phoenix/\">Phoenix</a>, <a href=\"/dojo/\">Dojo</a>, <a href=\"/relay/\">Relay</a> and <a href=\"/flow/\">Flow</a>"
},
{
"date": "2015-11-08",
"text": "New documentations: <a href=\"/elixir/\">Elixir</a> and <a href=\"/vagrant/\">Vagrant</a>"
},
{ {
"date": "2015-10-18", "date": "2015-10-18",
"text": "Added a \"Copy to clipboard\" button inside each code block." "text": "Added a \"Copy to clipboard\" button inside each code block."
}, },
{ { "date": "2015-09-13", "added": ["phalcon"] },
"date": "2015-09-13", { "date": "2015-08-09", "added": ["react_native"] },
"text": "New documentation: <a href=\"/phalcon/\">Phalcon</a>"
},
{
"date": "2015-08-09",
"text": "New documentation: <a href=\"/react_native/\">React Native</a>"
},
{ {
"date": "2015-08-03", "date": "2015-08-03",
"text": "Added an icon in the sidebar to constrain the width of the UI (visible when applicable)." "text": "Added an icon in the sidebar to constrain the width of the UI (visible when applicable)."
}, },
{ { "date": "2015-08-02", "added": ["q", "opentsdb"] },
"date": "2015-08-02",
"text": "New documentations: <a href=\"/q/\">Q</a> and <a href=\"/opentsdb/\">OpenTSDB</a>"
},
{ {
"date": "2015-07-26", "date": "2015-07-26",
"text": "Added search aliases (e.g. <code class=\"_label\">$</code> is an alias for <code class=\"_label\">jQuery</code>).\n<a href=\"/help#aliases\">Click here</a> to see the full list. Feel free to suggest more on <a href=\"https://github.com/freeCodeCamp/devdocs/issues/new\" target=\"_blank\" rel=\"noopener\">GitHub</a>.\nAdded <code class=\"_label\">shift + &darr;/&uarr;</code> shortcut for scrolling (same as <code class=\"_label\">alt + &darr;/&uarr;</code>)." "text": "Added search aliases (e.g. <code class=\"_label\">$</code> is an alias for <code class=\"_label\">jQuery</code>).\n<a href=\"/help#aliases\">Click here</a> to see the full list. Feel free to suggest more on <a href=\"https://github.com/freeCodeCamp/devdocs/issues/new\" target=\"_blank\" rel=\"noopener\">GitHub</a>.\nAdded <code class=\"_label\">shift + &darr;/&uarr;</code> shortcut for scrolling (same as <code class=\"_label\">alt + &darr;/&uarr;</code>)."
}, },
{ { "date": "2015-07-05", "added": ["drupal", "vue", "phaser", "webpack"] },
"date": "2015-07-05", { "date": "2015-05-24", "added": ["rust"] },
"text": "New documentations: <a href=\"/drupal/\">Drupal</a>, <a href=\"/vue/\">Vue.js</a>, <a href=\"/phaser/\">Phaser</a> and <a href=\"/webpack/\">webpack</a>" { "date": "2015-04-26", "added": ["apache_http_server", "npm"] },
}, { "date": "2015-03-22", "added": ["meteor", "mocha"] },
{
"date": "2015-05-24",
"text": "New <a href=\"/rust/\">Rust</a> documentation"
},
{
"date": "2015-04-26",
"text": "New <a href=\"/apache_http_server/\">Apache HTTP Server</a> and <a href=\"/npm/\">npm</a> documentations"
},
{
"date": "2015-03-22",
"text": "New <a href=\"/meteor/\">Meteor</a> and <a href=\"/mocha/\">mocha</a> documentations"
},
{ {
"date": "2015-02-22", "date": "2015-02-22",
"text": "Improved <a href=\"/http/\">HTTP</a> documentation\nNew <a href=\"/minitest/\">Minitest</a> documentation" "text": "Improved <a href=\"/http/\">HTTP</a> documentation\nNew <a href=\"/minitest/\">Minitest</a> documentation"
@ -241,7 +108,7 @@
}, },
{ {
"date": "2015-02-15", "date": "2015-02-15",
"text": "New <a href=\"/iojs/\">io.js</a>, <a href=\"/symfony/\">Symfony</a>, <a href=\"/clojure/\">Clojure</a>, <a href=\"/lua/\">Lua</a> and <a href=\"/yii1/\">Yii 1.1</a> documentations" "added": ["iojs", "symfony", "clojure", "lua", "yii1"]
}, },
{ {
"date": "2015-02-08", "date": "2015-02-08",
@ -253,100 +120,43 @@
}, },
{ {
"date": "2014-12-21", "date": "2014-12-21",
"text": "New <a href=\"/react/\">React</a>, <a href=\"/rethinkdb/\">RethinkDB</a>, <a href=\"/socketio/\">Socket.IO</a>, <a href=\"/modernizr/\">Modernizr</a> and <a href=\"/bower/\">Bower</a> documentations" "added": ["react", "rethinkdb", "socketio", "modernizr", "bower"]
},
{
"date": "2014-11-30",
"text": "New <a href=\"/phpunit/\">PHPUnit</a> and <a href=\"/nokogiri/\">Nokogiri</a> documentations"
},
{
"date": "2014-11-16",
"text": "New <a href=\"/python2/\">Python 2</a> documentation"
}, },
{ "date": "2014-11-30", "added": ["phpunit", "nokogiri"] },
{ "date": "2014-11-16", "added": ["python2"] },
{ {
"date": "2014-11-09", "date": "2014-11-09",
"text": "New design\nFeedback welcome on <a href=\"https://twitter.com/DevDocs\" target=\"_blank\" rel=\"noopener\">Twitter</a> and <a href=\"https://github.com/freeCodeCamp/devdocs\" target=\"_blank\" rel=\"noopener\">GitHub</a>." "text": "New design\nFeedback welcome on <a href=\"https://twitter.com/DevDocs\" target=\"_blank\" rel=\"noopener\">Twitter, ttps://github.com/freeCodeCamp/devdocs\" target=\"_blank\" rel=\"noopener\">GitHub</a>."
},
{
"date": "2014-10-19",
"text": "New <a href=\"/svg/\">SVG</a>, <a href=\"/marionette/\">Marionette.js</a>, and <a href=\"/mongoose/\">Mongoose</a> documentations"
},
{
"date": "2014-10-18",
"text": "New <a href=\"/nginx/\">nginx</a> documentation"
},
{
"date": "2014-10-13",
"text": "New <a href=\"/xpath/\">XPath</a> documentation"
}, },
{ "date": "2014-10-19", "added": ["svg", "marionette", "mongoose"] },
{ "date": "2014-10-18", "added": ["nginx"] },
{ "date": "2014-10-13", "added": ["xpath"] },
{ {
"date": "2014-09-07", "date": "2014-09-07",
"text": "Updated the HTML, CSS, JavaScript, and DOM documentations with additional content." "text": "Updated the HTML, CSS, JavaScript, and DOM documentations with additional content."
}, },
{ { "date": "2014-08-04", "added": ["django"] },
"date": "2014-08-04", { "date": "2014-07-27", "added": ["markdown"] },
"text": "New <a href=\"/django/\">Django</a> documentation" { "date": "2014-07-05", "added": ["cordova"] },
}, { "date": "2014-07-01", "added": ["chai", "sinon"] },
{ { "date": "2014-06-15", "added": ["requirejs"] },
"date": "2014-07-27", { "date": "2014-06-14", "added": ["haskell"] },
"text": "New <a href=\"/markdown/\">Markdown</a> documentation" { "date": "2014-05-25", "added": ["laravel"] },
}, { "date": "2014-05-04", "added": ["express", "grunt", "maxcdn"] },
{ { "date": "2014-04-06", "added": ["go"] },
"date": "2014-07-05", { "date": "2014-03-30", "added": ["cpp"] },
"text": "New <a href=\"/cordova/\">Cordova</a> documentation" { "date": "2014-03-16", "added": ["yii"] },
},
{
"date": "2014-07-01",
"text": "New <a href=\"/chai/\">Chai</a> and <a href=\"/sinon/\">Sinon</a> documentations"
},
{
"date": "2014-06-15",
"text": "New <a href=\"/requirejs/\">RequireJS</a> documentation"
},
{
"date": "2014-06-14",
"text": "New <a href=\"/haskell/\">Haskell</a> documentation"
},
{
"date": "2014-05-25",
"text": "New <a href=\"/laravel/\">Laravel</a> documentation"
},
{
"date": "2014-05-04",
"text": "New <a href=\"/express/\">Express</a>, <a href=\"/grunt/\">Grunt</a>, and <a href=\"/maxcdn/\">MaxCDN</a> documentations"
},
{
"date": "2014-04-06",
"text": "New <a href=\"/go/\">Go</a> documentation"
},
{
"date": "2014-03-30",
"text": "New <a href=\"/cpp/\">C++</a> documentation"
},
{
"date": "2014-03-16",
"text": "New <a href=\"/yii/\">Yii</a> documentation"
},
{ {
"date": "2014-03-08", "date": "2014-03-08",
"text": "Added path bar." "text": "Added path bar."
}, },
{ { "date": "2014-02-22", "added": ["c"] },
"date": "2014-02-22", { "date": "2014-02-16", "added": ["moment"] },
"text": "New <a href=\"/c/\">C</a> documentation"
},
{
"date": "2014-02-16",
"text": "New <a href=\"/moment/\">Moment.js</a> documentation"
},
{ {
"date": "2014-02-12", "date": "2014-02-12",
"text": "The root/category pages are now included in the search index (e.g. <a href=\"/#q=CSS\">CSS</a>)" "text": "The root/category pages are now included in the search index (e.g. <a href=\"/#q=CSS\">CSS</a>)"
}, },
{ { "date": "2014-01-19", "added": ["d3", "knockout"] },
"date": "2014-01-19",
"text": "New <a href=\"/d3/\">D3.js</a> and <a href=\"/knockout/\">Knockout.js</a> documentations"
},
{ {
"date": "2014-01-18", "date": "2014-01-18",
"text": "DevDocs is now available as a <a href=\"https://marketplace.firefox.com/app/devdocs/\">Firefox web app</a>." "text": "DevDocs is now available as a <a href=\"https://marketplace.firefox.com/app/devdocs/\">Firefox web app</a>."
@ -355,26 +165,11 @@
"date": "2014-01-12", "date": "2014-01-12",
"text": "Added <code class=\"_label\">alt + g</code> shortcut for searching on Google.\nAdded <code class=\"_label\">alt + r</code> shortcut for revealing the current page in the sidebar." "text": "Added <code class=\"_label\">alt + g</code> shortcut for searching on Google.\nAdded <code class=\"_label\">alt + r</code> shortcut for revealing the current page in the sidebar."
}, },
{ { "date": "2013-12-14", "added": ["postgresql"] },
"date": "2013-12-14", { "date": "2013-12-13", "added": ["git", "redis"] },
"text": "New <a href=\"/postgresql/\">PostgreSQL</a> documentation" { "date": "2013-11-26", "added": ["python"] },
}, { "date": "2013-11-19", "added": ["rails"] },
{ { "date": "2013-11-16", "added": ["ruby"] },
"date": "2013-12-13",
"text": "New <a href=\"/git/\">Git</a> and <a href=\"/redis/\">Redis</a> documentations"
},
{
"date": "2013-11-26",
"text": "New <a href=\"/python/\">Python</a> documentation"
},
{
"date": "2013-11-19",
"text": "New <a href=\"/rails/\">Ruby on Rails</a> documentation"
},
{
"date": "2013-11-16",
"text": "New <a href=\"/ruby/\">Ruby</a> documentation"
},
{ {
"date": "2013-10-24", "date": "2013-10-24",
"text": "DevDocs is now <a href=\"https://github.com/freeCodeCamp/devdocs\">open source</a>." "text": "DevDocs is now <a href=\"https://github.com/freeCodeCamp/devdocs\">open source</a>."
@ -383,50 +178,31 @@
"date": "2013-10-09", "date": "2013-10-09",
"text": "DevDocs is now available as a <a href=\"https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe\">Chrome web app</a>." "text": "DevDocs is now available as a <a href=\"https://chrome.google.com/webstore/detail/devdocs/mnfehgbmkapmjnhcnbodoamcioleeooe\">Chrome web app</a>."
}, },
{ { "date": "2013-09-22", "added": ["php/"] },
"date": "2013-09-22", { "date": "2013-09-06", "added": ["lodash"] },
"text": "New <a href=\"/php/\">PHP</a> documentation"
},
{ {
"date": "2013-09-06", "date": "2013-09-06",
"text": "New <a href=\"/lodash/\">Lo-Dash</a> documentation \nOn mobile devices you can now search a specific documentation by typing its name and <code class=\"_label\">Space</code>." "text": "On mobile devices you can now search a specific documentation by typing its name and <code class=\"_label\">Space</code>."
},
{
"date": "2013-09-01",
"text": "New <a href=\"/jqueryui/\">jQuery UI</a> and <a href=\"/jquerymobile/\">jQuery Mobile</a> documentations"
}, },
{ "date": "2013-09-01", "added": ["jqueryui", "jquerymobile"] },
{ {
"date": "2013-08-28", "date": "2013-08-28",
"text": "New smartphone interface\nTested on iOS 6+ and Android 4.1+" "text": "New smartphone interface\nTested on iOS 6+ and Android 4.1+"
}, },
{ { "date": "2013-08-25", "added": ["ember"] },
"date": "2013-08-25", { "date": "2013-08-18", "added": ["coffeescript"] },
"text": "New <a href=\"/ember/\">Ember.js</a> documentation"
},
{ {
"date": "2013-08-18", "date": "2013-08-18",
"text": "New <a href=\"/coffeescript/\">CoffeeScript</a> documentation\nURL search now automatically opens the first result." "text": "URL search now automatically opens the first result."
},
{
"date": "2013-08-13",
"text": "New <a href=\"/angularjs/\">Angular.js</a> documentation"
},
{
"date": "2013-08-11",
"text": "New <a href=\"/sass/\">Sass</a> and <a href=\"/less/\">Less</a> documentations"
},
{
"date": "2013-08-05",
"text": "New <a href=\"/node/\">Node.js</a> documentation"
}, },
{ "date": "2013-08-13", "added": ["angularjs"] },
{ "date": "2013-08-11", "added": ["sass", "less"] },
{ "date": "2013-08-05", "added": ["node"] },
{ {
"date": "2013-08-03", "date": "2013-08-03",
"text": "Added support for OpenSearch" "text": "Added support for OpenSearch"
}, },
{ { "date": "2013-07-30", "added": ["backbone"] },
"date": "2013-07-30",
"text": "New <a href=\"/backbone/\">Backbone.js</a> documentation"
},
{ {
"date": "2013-07-27", "date": "2013-07-27",
"text": "You can now customize the list of documentations.\nNew docs will be hidden by default, but you'll see a notification when there are new releases.\nNew <a href=\"/http/\">HTTP</a> documentation" "text": "You can now customize the list of documentations.\nNew docs will be hidden by default, but you'll see a notification when there are new releases.\nNew <a href=\"/http/\">HTTP</a> documentation"
@ -439,9 +215,10 @@
"date": "2013-07-13", "date": "2013-07-13",
"text": "Added syntax highlighting\nAdded documentation versions" "text": "Added syntax highlighting\nAdded documentation versions"
}, },
{ "date": "2013-07-11", "added": ["underscore"] },
{ {
"date": "2013-07-11", "date": "2013-07-11",
"text": "New <a href=\"/underscore/\">Underscore.js</a> documentation \nImproved compatibility with tablets\nA mobile version is planned as soon as other high priority features have been implemented." "text": "Improved compatibility with tablets\nA mobile version is planned as soon as other high priority features have been implemented."
}, },
{ {
"date": "2013-07-10", "date": "2013-07-10",
@ -451,14 +228,12 @@
"date": "2013-07-08", "date": "2013-07-08",
"text": "Improved search with fuzzy matching and better results\nFor example, searching <code>jqmka</code> now returns <code>jQuery.makeArray()</code>.\nDevDocs finally has an icon.\n<code class=\"_label\">space</code> has replaced <code class=\"_label\">alt + space</code> for scrolling down." "text": "Improved search with fuzzy matching and better results\nFor example, searching <code>jqmka</code> now returns <code>jQuery.makeArray()</code>.\nDevDocs finally has an icon.\n<code class=\"_label\">space</code> has replaced <code class=\"_label\">alt + space</code> for scrolling down."
}, },
{ "date": "2013-07-06", "added": ["dom"] },
{ {
"date": "2013-07-06", "date": "2013-07-06",
"text": "New <a href=\"/dom/\">DOM</a> and <a href=\"/dom_events/\">DOM Events</a> documentations\nDevDocs now includes almost all reference documents available on the Mozilla Developer Network.\nBig thank you to Mozilla and all the people that contributed to MDN.\nImplemented URL search: <a href=\"/#q=sort\">devdocs.io/#q=sort</a>" "text": "DevDocs now includes almost all reference documents available on the Mozilla Developer Network.\nBig thank you to Mozilla and all the people that contributed to MDN.\nImplemented URL search: <a href=\"/#q=sort\">devdocs.io/#q=sort</a>"
},
{
"date": "2013-07-02",
"text": "New <a href=\"/javascript/\">JavaScript</a> documentation"
}, },
{ "date": "2013-07-02", "added": ["javascript"] },
{ {
"date": "2013-06-28", "date": "2013-06-28",
"text": "DevDocs made the front page of Hacker News!\nHi everyone &mdash; thanks for trying DevDocs.\nPlease bear with me while I fix bugs and scramble to add more docs.\nThis is only v1. There's a lot more to come." "text": "DevDocs made the front page of Hacker News!\nHi everyone &mdash; thanks for trying DevDocs.\nPlease bear with me while I fix bugs and scramble to add more docs.\nThis is only v1. There's a lot more to come."

@ -24,9 +24,16 @@ MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'Augus
newsItem = (date, news) -> newsItem = (date, news) ->
date = """<span class="_news-date">#{MONTHS[date.getUTCMonth()]} #{date.getUTCDate()}</span>""" date = """<span class="_news-date">#{MONTHS[date.getUTCMonth()]} #{date.getUTCDate()}</span>"""
text = news.text.split "\n" text = if news.text then news.text.split "\n" else []
if news.added
links = (linkForSlug n for n in news.added)
text.push """New #{if links.length > 1 then 'documentations' else 'documentation'}: #{links.join ', '}"""
title = """<span class="_news-title">#{text.shift()}</span>""" title = """<span class="_news-title">#{text.shift()}</span>"""
result = """<div class="_news-row">#{date} #{title} #{text.join '<br>'}</div>""" result = """<div class="_news-row">#{date} #{title} #{text.join '<br>'}</div>"""
result result
linkForSlug = (slug) ->
doc = app.docs.findBySlug(slug) or app.disabledDocs.findBySlug(slug)
if doc then """<a href="/#{slug}/">#{doc.name}</a>""" else ""
app.news = <%= App.news.to_json %> app.news = <%= App.news.to_json %>

Loading…
Cancel
Save