1
0
mirror of synced 2024-11-22 13:06:08 +03:00
Commit Graph

291 Commits

Author SHA1 Message Date
Kevin Brown
a5e539b509 Updated Bootstrap to 3.3.6 for docs
This allows us to custom build it without Glyphicons so we don't have
any errors about it not being found.
2016-02-14 14:33:52 -05:00
Kevin Brown
75163d67cb Switched options page to use Jekyll highlighting 2016-02-14 13:33:33 -05:00
Kevin Brown
a126b53b4c CSS changes for Rouge highlighting
This adds a new CSS file and adjusts existing highlighting files for the
Rouge syntax highlighting that was enabled.
2016-01-30 21:01:12 -05:00
Kevin Brown
d5a76aab26 Switched 4.0 announcement to Jekyll highlighting 2016-01-30 18:30:57 -05:00
Kevin Brown
74387b9863 Switched examples to use Jekyll's highlighting
This fixes some bugs that were present in the old Prettify highlighter
when there was a mix of JavaScript and HTML in the same code block. Now
with Rouge, the highlighter used by Jekyll, these cases are properly
handled and HTML no longer looks strange.

This does not convert all of the code blocks over, because there are
still some code blocks which double as the actual JavaScript code
powering the example that need to be migrated.
2016-01-30 18:09:01 -05:00
Kevin Brown
54441e6a22 Switched index to use Jekyll's code highlighting
We previously used Google's Prettify, which worked on the client side.
Now that we are actually using Jekyll, and it has built-in syntax
highlighting, we might as well change to doing highlighting on the
backend.
2016-01-28 11:54:24 -05:00
Andy Carter
9b4b9175fc Replaced protocol-relative URLs with HTTPS protocol
Use of protocol-relative URLs is now seen as an anti-pattern as it leaves the door open to attacks. As the CDNs serve over HTTPS it should be recommended that people use HTTPS rather than protocol-relative URLs. See Paul Irish's post on [Protocol-relative URLs](http://www.paulirish.com/2010/the-protocol-relative-url/) for more details.
2016-01-27 10:21:50 +00:00
Kevin Brown
0840c3923f Code samples and docs for selections 2016-01-14 19:30:11 -05:00
Kevin Brown
ce2204cff0 Code samples for options affecting the dropdown
This is just code samples, most of this still needs readable (non-code)
documentation that actually explains what is going on with the options.
2016-01-14 19:29:48 -05:00
Kevin Brown
55aa2c64cc More docs for data adapters 2016-01-14 19:26:19 -05:00
Kevin Brown
d6bc96d7de Expand upon the core section of the docs
This adds more code examples where they might be useful, and adds some
more description where it was needed. This clarifies a couple of the
questions that have come up about the AMD support and links to the bug
that Select2 was involved with that some people reported when 4.0.0 was
released.
2016-01-14 18:40:37 -05:00
Kevin Brown
63d531a9c0 Fixed responsive example in documentation
This fixes the documentation so the responsive example actually works.
Everything was working properly, the example just wasn't updated when
the default for the width was changed to `100%` in
5fd72d2052.
This is a change from the old `resolve` width setting, which is
responsible for parsing the style attribute and getting the width that
was set.

This closes https://github.com/select2/select2/issues/4050
2016-01-03 18:57:49 -05:00
ricardokenji
c33ba3117b Update clearing-selections.html 2015-12-11 13:25:09 -02:00
Kevin Brown
bc19964170 Update version identifiers to 4.0.1 2015-11-27 18:26:20 -05:00
Kevin Brown
87b182fe2a Update version identifiers to 4.0.1-rc.1 2015-11-09 20:23:20 -05:00
Sebastian Podjasek
96fb1bf2d4 Fix option name 2015-09-17 23:36:18 +02:00
Kevin Brown
2b91ac0a20 Rename options-new to options 2015-09-14 19:30:32 -04:00
Kevin Brown
8ac5f1ddf2 Migrate old options to options-old 2015-09-14 19:24:46 -04:00
Kevin Brown
b819a495aa Added compatibility section
This is the same as the old documentation, it has not been transformed
into a FAQ yet.
2015-09-13 15:36:52 -04:00
Kevin Brown
84d1218751 Added note about incomplete documentation
This adds two notes, one pointing to the old documentation and the other
pointing to the community, for getting extra help if their question is
not answered.
2015-09-13 15:27:34 -04:00
Kevin Brown
bc82856fb6 Document data object format
So far this just documents how <select> elements have their options
converted to a data object.
2015-09-13 11:33:21 -04:00
Kevin Brown
46ab1ebc8d A bunch of questions are missing answers
These will be filled in at a later point in time, hopefully later today.
2015-09-13 11:32:41 -04:00
Kevin Brown
119df9b09f Add questions about the dropdown 2015-09-13 11:31:59 -04:00
Kevin Brown
e9b89b4ac1 Add template for questions without answers 2015-09-13 11:31:34 -04:00
Kevin Brown
e472cb31f0 Finish off the core option answers
These were mostly there before, it was just a matter of moving some of
the answers around.
2015-09-13 11:31:06 -04:00
Kevin Brown
4541d83c5d Updated side navigation
Now most of the links works, not including the ones for sections which
don't exist at the moment.
2015-09-13 11:30:26 -04:00
Kevin Brown
c502961149 Answers to some of the questions 2015-09-09 12:30:12 -04:00
Kevin Brown
a96ec9d91c Added section for events
Both public jQuery events and internal Select2 events will be
documented.
2015-08-31 21:14:59 -04:00
Kevin Brown
75abd407c8 Continue building out the FAQ
This adds more questions that will eventually get answers. Most of these
questions are already answered either in the current documentation or on
Stack Overflow, so it shouldn't be too difficult to fill out answers for
them.
2015-08-31 20:43:01 -04:00
Kevin Brown
41e4795578 Set up initial page with some questions
Right now this sets up the new FAQ/Options page with most of the
questions for the how to control the selection. Not all of these
questions have answers, most of them weren't moved over, but there are
plans to add detailed answers to all of them.

The questions were aggregated based on common Stack Overflow and IRC
questions, as well as commonly asked things on GitHub.
2015-08-29 19:51:52 -04:00
Kevin Brown
7bc9387de2 Merge pull request #3637 from wobbie/master
fix: modify announcement 4.0 doc Tags example
2015-08-19 20:02:37 -04:00
Anthony DiSanti
4a5d753112 Fixes typos in docs
* Updates Disabled Mode docs
* Updates Disabled Results docs
2015-08-09 14:19:39 -04:00
wobbie
2932c5448b fix: modify announcement 4.0 doc Tags example 2015-08-03 11:48:26 +01:00
mouseshi
eab609185a fix: modify announcement 4.0 doc Option params 2015-07-02 16:27:59 +08:00
Quentin Pradet
5efdc35aeb Replace tabs with spaces for consistency 2015-06-18 10:19:56 +02:00
Florian Kissling
117f11da21 Merge pull request #3488 from fk/docs-fix-sidebar-layout
docs: Fix sidebar layout and its jumpy link hover/active states
2015-06-17 16:37:44 +02:00
Florian Kissling
82a7e27984 Fix the sidebar layout and its jumpy link hover/active states. 2015-06-17 16:27:10 +02:00
Florian Kissling
ebecea1f98 Update AnchorJS from v0.3.1 to 1.1.1. 2015-06-11 03:45:31 +02:00
Stretch
d91dfecd98 #3326 Maximum selection example
Fixing the documentation for maximumselectionlength
2015-06-10 18:59:09 +10:00
Florian Kissling
42739b780e Merge branch 'master' into docs-improvements
Conflicts:
	docs/examples.html

In the docs-improvements branch, the docs examples live in partials located in docs/_includes/examples.
The updated AJAX example code from https://github.com/select2/select2/pull/3357 – the conflicting addition to docs/examples.html – has been ported to the appropiate partial in docs/_includes/examples.data.html.
2015-06-08 02:27:33 +02:00
Florian Kissling
691dfe5340 Tidy and simplify CSS; add very basic documentation. 2015-06-08 01:46:53 +02:00
Florian Kissling
14e1c4d5f9 JavaScript indention. 2015-06-07 17:05:17 +02:00
Florian Kissling
44c64cf6da Replace "..." with an ellipsis, fix a typo. 2015-06-07 16:42:20 +02:00
Florian Kissling
2b8865b3b3 Indention, whitespace. 2015-06-07 16:40:00 +02:00
Florian Kissling
2c627b4875 Fix layout. 2015-06-07 01:03:37 +02:00
Florian Kissling
ab3d5ee884 Ditch Sass' indented syntax. 2015-06-07 00:46:05 +02:00
Florian Kissling
419242fc16 Nesting, whitespace. 2015-06-06 15:32:11 +02:00
Kevin Brown
b4a44ccfdf Adjusted the home page text
This adds the final box, which I've chosen to be for the browser
support (though that can be changed).

The last two boxes on the first row have also been swapped, partially
because the text sizes now match the second row, but also because
the AJAX support should be more prominent than the theme support.
2015-05-31 16:15:55 -04:00
Kevin Brown
038c709c8b Adjusted some wording 2015-05-31 15:11:01 -04:00
Kevin Brown
21bac6a6d8 Updated front page features
This adds correct links to the linked text on the front page under
the features section. There is still one panel which needs to be
written, the last one that includes the AJAX text again, before it
can really be considered finished.

The wording around the Bootstrap theme was adjusted pending further
discussion about how that is going to be handled.
2015-05-31 14:53:39 -04:00
Gilad Peleg
45cfac7456 Update ajax example to reflect pagination 2015-05-13 17:34:38 +03:00
Florian Kissling
87f5425464 Drop "_s2-docs-" prefix from Sass partials. 2015-05-08 04:14:41 +02:00
Florian Kissling
14c6113eef Fix indention. 2015-05-08 04:08:31 +02:00
Florian Kissling
922d54615f Fix indention, consistently declare anchor-nav relevant IDs for <h1> (instead of <section>). 2015-05-08 03:41:52 +02:00
Florian Kissling
dc679f7cbd Add a "feature overview" section to the homepage.
While I'm not too happy with things as they currently are, it's a start.
This also removes the icon from the "Download" button.
2015-05-08 03:29:16 +02:00
Florian Kissling
a2ff7a6046 Move button-specific CSS to partial. 2015-05-08 03:21:42 +02:00
Florian Kissling
bc3ce2c5b4 Navigation CSS improvements. 2015-05-08 02:47:20 +02:00
Florian Kissling
fa421cdfc0 Fix footer border color. 2015-05-07 18:57:06 +02:00
Florian Kissling
83e0f6b034 Add link to contributors to footer. 2015-05-07 15:36:09 +02:00
Florian Kissling
9c8ddd16b8 Move select.js-source-states to partial. 2015-05-07 14:31:58 +02:00
Florian Kissling
a0db9efdef Fix version number in footer. 2015-05-07 02:04:43 +02:00
Florian Kissling
5fd72d2052 Set "width" to "100%" as default for all Select2s on the "Examples" page. 2015-05-06 09:28:48 +02:00
Florian Kissling
cc0d662fe6 Fix ID. 2015-05-06 09:22:04 +02:00
Florian Kissling
96abf64472 Rename section "Other data sources" to "Data sources".
Also adds an introductional paragraph to the section.
2015-05-06 03:36:29 +02:00
Florian Kissling
20b64cfe15 Group single and multiple select box examples under "The basics". 2015-05-06 03:20:44 +02:00
Florian Kissling
ea70cbc24c Remove p.lead. 2015-05-06 03:05:27 +02:00
Florian Kissling
45d8486dbb Remove p.lead from .jumbotrons. 2015-05-06 03:04:48 +02:00
Florian Kissling
635b8b2f68 Use https to include ghbtns.com iframes. 2015-05-06 02:57:29 +02:00
Florian Kissling
60bcff089f FIx filename. 2015-05-06 02:51:18 +02:00
Florian Kissling
60710af6ed Add GitHub fork and star buttons to footer.
Directly borrowed from the Bootstrap docs again.
2015-05-06 02:51:10 +02:00
Florian Kissling
dfc8eecdcb Add "type" to stylesheet link tag. 2015-05-06 02:47:53 +02:00
Florian Kissling
f822cd904b Convert "Options" page contents to partials. 2015-05-06 01:47:44 +02:00
Florian Kissling
b74a0ae6e0 Move all examples to partials. 2015-05-06 01:19:05 +02:00
Florian Kissling
f54993050e This h1 should be an h2. 2015-05-04 04:28:28 +02:00
Florian Kissling
a728044fa9 More grouping on the "Examples" page.
* "Loading array data" and "Loading remote data" now go together under "Other data sources",
* "Events" and "Programmatic access" under "Programmatic control",
* "Theme support", "Responsive design" and "Templating" under "Themes, templating and responsive design"
2015-05-04 03:04:09 +02:00
Florian Kissling
ba61678358 Group diacritics, RTL and l10n examples.
Just an example – very unsure what goes with what.
2015-05-02 20:53:51 +02:00
Florian Kissling
bf7d273f89 Add sidebar anchor navigation to the "Examples" page. 2015-05-02 14:10:31 +02:00
Florian Kissling
3ed07a6fda Stop anchorjs from suffixing its links for "Placeholders" and "Templating" headlines.
Cosmetic changes for the homepage 3.x docs notice.
2015-05-01 04:30:52 +02:00
Florian Kissling
365ec579b7 Typography. 2015-04-30 00:59:06 +02:00
Florian Kissling
fb40644c42 Add <code> tags. 2015-04-28 04:01:33 +02:00
Florian Kissling
445c48236d Merge branch 'master' into docs-improvements
Conflicts:
	docs/announcements-4.0.html
	docs/index.html
2015-04-28 03:11:24 +02:00
Florian Kissling
b34e5b3925 Tidy. 2015-04-28 02:57:58 +02:00
Florian Kissling
9d85d7fb41 Move 3.x docs notice to partial. 2015-04-28 02:50:05 +02:00
Florian Kissling
082dda4830 Improve headline. 2015-04-28 02:49:27 +02:00
Florian Kissling
4b34dc7063 Calmer "Example Code" headlines. 2015-04-28 02:42:18 +02:00
Florian Kissling
c57a6fea90 Change "Loading remote data" formatRepo() markup.
Now fits the styles in docs/_sass/_s2-result-repository.
2015-04-28 02:41:52 +02:00
Florian Kissling
4ab6567f1d Calmer "Version". 2015-04-28 02:40:04 +02:00
Florian Kissling
58eadd5718 Fix border colors. 2015-04-28 02:36:57 +02:00
Florian Kissling
f061ada2e1 Simplify. 2015-04-28 02:08:53 +02:00
Florian Kissling
f033428742 Center text. 2015-04-28 02:08:20 +02:00
Florian Kissling
d430ff998e Add logo to .navbar-brand. 2015-04-28 02:08:06 +02:00
Florian Kissling
8ddd29ff41 Add paragraphs. 2015-04-28 02:07:23 +02:00
Florian Kissling
f26cc14874 Whitespace. 2015-04-28 02:00:22 +02:00
Florian Kissling
2cd6e864f7 Include new Sass partials. 2015-04-28 01:52:55 +02:00
Florian Kissling
eb3f4c180b Move vendor/prettify.css to _sass/_prettify.scss. 2015-04-28 01:52:35 +02:00
Florian Kissling
041c7ee8ec wrap "initSelection" in <code>. 2015-04-28 01:47:25 +02:00
Florian Kissling
eef50c9b94 Add .s2-docs-home to "home" layout, add partial for homepage CSS. 2015-04-28 01:43:31 +02:00
Florian Kissling
e0e79dbc4e Make "Topics" menu item .active when "announcements-4.0" is the current page. 2015-04-28 01:36:23 +02:00
Florian Kissling
80dbd692db Don't show line numbers for one line code examples. 2015-04-28 01:17:01 +02:00
Florian Kissling
33b637dbf9 Ditch wrong .lead copy. 2015-04-28 01:16:18 +02:00