Official website and documentation for LESS/Less.js
Assemble and Grunt are used to build the docs. To get started:
- Download the docs
- In the root of the project, run
npm install
- Run the
grunt
command to build the docs
If all worked properly, then you're ready to begin contributing to the docs!
All documentation content can be found in the ./content
directory. Please read the contributing section below if you wish to add documentation.
- Clean up and organize all of the documentation in the content directory, which means
- Consistent naming conventions for files, consistent coding styles in documents
- Organize information and favor individual files for sections of content, rather than long documents
- Last, a new theme.
Please help us make the documentation as consist, readable, and maintainable by conforming to these guidelines when contributing:
- Use
#
for titles, not underlines. Underlines aren't as flexible, aren't always highlighted properly in code highlighters - Always add a space between the
#
and the heading - Wrap inline code with a single backtick,
- wrap blocks of code with three backticks (code fences).
- With code blocks, always use the correct language after to the first code fence. Althought Ghtub does not highlight LESS, our documentation is more likely to show up in GitHub's and Google's search results when the correct language is used. Examples: pleas use
```less
for LESS, and```css
for CSS.
- Two spaces for indentation, never tabs, and always use proper indentation
- Multiple-line formatting (one property and value per line)
- For multiple, comma-separated selectors, place each selector on it's own line
- Double quotes only, never single quotes
- Always a space after a property's colon (.e.g,
display: block;
and notdisplay:block;
) - End all lines with a semi-colon
- Attribute selectors, like
input[type="text"]
should always wrap the attribute's value in double quotes. This is important to do in your own code as well, for consistency and safety (see this blog post on unquoted attribute values that can lead to XSS attacks). - When HTML is in your examples, use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags with no trailing slash)
Examples:
Good
body {
padding-top: 80px;
font-size: 12px;
}
Bad
body {
padding-top: 80px;
font-size: 12px;
}
Bad
body { padding-top: 80px; font-size: 12px }
Also, please ensure that all documentation files should have globally unique names, regardless of where they are located in the repository. This makes it easier to use conveniences like file globbing, and it's good practice anyway.
- If you would like to request a feature, suggest an improvement, or report a bug, please submit an Issue.
- Feature requests are more likely to get attention if you include a clearly described use case.
- If you wish to submit a pull request, please read this first.md.
The documentation site is generated using Assemble. Please visit that project to report bugs, or to learn more about usage and customization.
Update the project with the most recent metadata from the Less.js project, such as current version number, description, and so on, and then run Grunt with the following command:
node data/utils/pkg && grunt
Copyright (c) 2013, Less.js Core Team, Contributors Documentation released under Creative Commons. Documentation source code released under the MIT License. Less.js source code is released under the Apache 2 License.
less-docs's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.