Blame view

doc/usage.md 3.83 KB
87e21225   Andy   new webportal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
  [HTML5 Boilerplate homepage](https://html5boilerplate.com) | [Documentation
  table of contents](TOC.md)
  
  # Usage
  
  Once you have cloned or downloaded HTML5 Boilerplate, creating a site or app
  usually involves the following:
  
  1. Set up the basic structure of the site.
  2. Add some content, style, and functionality.
  3. Run your site locally to see how it looks.
  4. (Optionally run a build script to automate the optimization of your site -
     e.g. [ant build script](https://github.com/h5bp/ant-build-script))
  5. Deploy your site.
  
  
  ## Basic structure
  
  A basic HTML5 Boilerplate site initially looks something like this:
  
  ```
  .
  ├── css
  │   ├── main.css
  │   └── normalize.css
  ├── doc
  ├── img
  ├── js
  │   ├── main.js
  │   ├── plugins.js
  │   └── vendor
  │       ├── jquery.min.js
  │       └── modernizr.min.js
  ├── .editorconfig
  ├── .htaccess
  ├── 404.html
  ├── apple-touch-icon.png
  ├── browserconfig.xml
  ├── index.html
  ├── humans.txt
  ├── robots.txt
  ├── crossdomain.xml
  ├── favicon.ico
  ├── tile-wide.png
  └── tile.png
  ```
  
  What follows is a general overview of each major part and how to use them.
  
  ### css
  
  This directory should contain all your project's CSS files. It includes some
  initial CSS to help get you started from a solid foundation. [About the
  CSS](css.md).
  
  ### doc
  
  This directory contains all the HTML5 Boilerplate documentation. You can use it
  as the location and basis for your own project's documentation.
  
  ### js
  
  This directory should contain all your project's JS files. Libraries, plugins,
  and custom code can all be included here. It includes some initial JS to help
  get you started. [About the JavaScript](js.md).
  
  ### .htaccess
  
  The default web server configs are for Apache. For more information, please
  refer to the [Apache Server Configs
  repository](https://github.com/h5bp/server-configs-apache).
  
  Host your site on a server other than Apache? You're likely to find the
  corresponding server configs project listed in our [Server Configs
  ](https://github.com/h5bp/server-configs/blob/master/README.md) repository.
  
  ### 404.html
  
  A helpful custom 404 to get you started.
  
  ### browserconfig.xml
  
  This file contains all settings regarding custom tiles for IE11.
  
  For more info on this topic, please refer to
  [MSDN](https://msdn.microsoft.com/en-us/library/ie/dn455106.aspx).
  
  ### .editorconfig
  
  The `.editorconfig` file is provided in order to encourage and help you and
  your team to maintain consistent coding styles between different
  editors and IDEs. [Read more about the `.editorconfig` file](misc.md#editorconfig).
  
  ### index.html
  
  This is the default HTML skeleton that should form the basis of all pages on
  your site. If you are using a server-side templating framework, then you will
  need to integrate this starting HTML with your setup.
  
  Make sure that you update the URLs for the referenced CSS and JavaScript if you
  modify the directory structure at all.
  
  If you are using Google Universal Analytics, make sure that you edit the
  corresponding snippet at the bottom to include your analytics ID.
  
  ### humans.txt
  
  Edit this file to include the team that worked on your site/app, and the
  technology powering it.
  
  ### robots.txt
  
  Edit this file to include any pages you need hidden from search engines.
  
  ### crossdomain.xml
  
  A template for working with cross-domain requests. [About
  crossdomain.xml](misc.md#crossdomainxml).
  
  ### Icons
  
  Replace the default `favicon.ico`, `tile.png`, `tile-wide.png` and Apple
  Touch Icon with your own.
  
  If you want to use different Apple Touch Icons for different resolutions please
  refer to the [according documentation](extend.md#apple-touch-icons).
  
  You might want to check out Hans' handy [HTML5 Boilerplate Favicon and Apple
  Touch Icon
  PSD-Template](https://drublic.de/blog/html5-boilerplate-favicons-psd-template/).