Update CSS documentation

pull/129/head
Thibaut 11 years ago
parent c68133eb8c
commit d43d5ff84c

@ -1,9 +1,9 @@
module Docs
class Css
class EntriesFilter < Docs::EntriesFilter
DATA_TYPE_SLUGS = %w(angle color_value counter frequency gradient image
integer length number percentage position_value ratio resolution shape
string time timing-function uri user-ident)
DATA_TYPE_SLUGS = %w(angle basic-shape color_value counter frequency
gradient image integer length number percentage position_value ratio
resolution shape string time timing-function uri user-ident)
FUNCTION_SLUGS = %w(attr calc cross-fade cubic-bezier cycle element
linear-gradient radial-gradient repeating-linear-gradient
@ -12,7 +12,7 @@ module Docs
PSEUDO_ELEMENT_SLUGS = %w(::after ::before ::first-letter ::first-line
::selection)
VALUE_SLUGS = %w(auto inherit initial none normal)
VALUE_SLUGS = %w(auto inherit initial none normal unset)
ADDITIONAL_ENTRIES = {
'shape' => [

@ -8,7 +8,6 @@ module Docs
options[:root_title] = 'CSS'
# Don't want
options[:skip] = %w(
/Syntax
/At-rule
@ -32,12 +31,15 @@ module Docs
/Pseudo-classes
/CSS_values_syntax
/Media/Visual
/block_formatting_context)
/block_formatting_context
/image()
/paged_media)
options[:skip_patterns] = [/\-webkit/, /\-moz/, /Extensions/, /Tools/]
# Broken / Empty
options[:skip].concat %w(/image())
options[:replace_paths] = {
'/%3Cbasic-shape%3E' => '/basic-shape'
}
options[:fix_urls] = ->(url) do
url.sub! %r{https://developer\.mozilla\.org/en\-US/docs/CSS/([a-z@:])}, "#{Css.base_url}/\\1"

Loading…
Cancel
Save