diff --git a/static/sass/docs.sass b/static/sass/docs.sass new file mode 100644 index 0000000..a96cd57 --- /dev/null +++ b/static/sass/docs.sass @@ -0,0 +1,39 @@ +@import variables + +h1 + color: $baseColor1 + + span + color: $baseColor2 + +h2, h3 + color: $baseColor2 * 0.8 + +p + line-height: 1.8em + +ul + list-style: none + margin-bottom: 2% + + li + margin-bottom: 2% + +span + &#code + background-color: $baseColor3 * 1.2 + font-family: monospace + padding: 5px + + &#string + color: $baseColor1 + font-family: monospace + font-size: 1.1em + + &#title + color: $baseColor1 + font-weight: bold + +li#sec3 span#gasp + color: $baseColor2 * 0.8 + font-style: italic diff --git a/templates/docs.html b/templates/docs.html index 70fd7f9..9a319eb 100644 --- a/templates/docs.html +++ b/templates/docs.html @@ -4,38 +4,115 @@ docs = endblock += block head + {{ assets.tag("docs.css") }} += endblock + = block body -

Usage

-

- bitshift is a search-engine optimized for source code: beyond supporting searches with the full range of ASCII - symbols, the engine understands code, allowing users to query for metadata, like time of creation/last - modification, programming language, and even symbols like function names and variables. Basic use boils down to - general and advanced searches. - -

general search

-

- To perform a "general search," simply place your cursor in the search bar on our home page and begin typing; when - you stop typing for a short period of time, we'll automtically execute a query for you. As you scroll down the - results page, the front-end will query our server and seamlessly load more and more results. -

- -

advanced search

-

- General searches, though, are limited. To allow users to make the best of our engine, we created an advanced - search form that allows the creation of complex queries. - -

search fields

+ = endblock