History

Update CSS documentation

Thibaut committed 12 years ago

Commit d43d5ff1 parent c68133e2 files · +10 −8Browse files

Unified · Split

2 files
  1. lib/docs/filters/css/entries.rb +4 −4
  2. lib/docs/scrapers/mdn/css.rb +6 −4
lib/docs/filters/css/entries.rb+4−4
@@ -1,9 +1,9 @@
11 module Docs
22 class Css
33 class EntriesFilter < Docs::EntriesFilter
4− DATA_TYPE_SLUGS = %w(angle color_value counter frequency gradient image
5− integer length number percentage position_value ratio resolution shape
6− string time timing-function uri user-ident)
4+ DATA_TYPE_SLUGS = %w(angle basic-shape color_value counter frequency
5+ gradient image integer length number percentage position_value ratio
6+ resolution shape string time timing-function uri user-ident)
77
88 FUNCTION_SLUGS = %w(attr calc cross-fade cubic-bezier cycle element
99 linear-gradient radial-gradient repeating-linear-gradient
@@ -12,7 +12,7 @@ module Docs · 2 unmodified lines
1212 PSEUDO_ELEMENT_SLUGS = %w(::after ::before ::first-letter ::first-line
1313 ::selection)
1414
15− VALUE_SLUGS = %w(auto inherit initial none normal)
15+ VALUE_SLUGS = %w(auto inherit initial none normal unset)
1616
1717 ADDITIONAL_ENTRIES = {
1818 'shape' => [
lib/docs/scrapers/mdn/css.rb+6−4
@@ -8,7 +8,6 @@ module Docs · 7 unmodified lines
88
99 options[:root_title] = 'CSS'
1010
11− # Don't want
1211 options[:skip] = %w(
1312 /Syntax
1413 /At-rule
@@ -32,12 +31,15 @@ module Docs · 17 unmodified lines
3231 /Pseudo-classes
3332 /CSS_values_syntax
3433 /Media/Visual
35− /block_formatting_context)
34+ /block_formatting_context
35+ /image()
36+ /paged_media)
3637
3738 options[:skip_patterns] = [/\-webkit/, /\-moz/, /Extensions/, /Tools/]
3839
39− # Broken / Empty
40− options[:skip].concat %w(/image())
40+ options[:replace_paths] = {
41+ '/%3Cbasic-shape%3E' => '/basic-shape'
42+ }
4143
4244 options[:fix_urls] = ->(url) do
4345 url.sub! %r{https://developer\.mozilla\.org/en\-US/docs/CSS/([a-z@:])}, "#{Css.base_url}/\\1"