Merge pull request #3366 from danny007in/improve-docs

docs and readme update
pull/3385/head
REJack 2021-02-02 21:54:08 +01:00 committed by GitHub
commit 15072dbdb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 50 additions and 16 deletions

View File

@ -2,7 +2,7 @@
[![npm version](https://img.shields.io/npm/v/admin-lte/latest.svg)](https://www.npmjs.com/package/admin-lte) [![npm version](https://img.shields.io/npm/v/admin-lte/latest.svg)](https://www.npmjs.com/package/admin-lte)
[![Packagist](https://img.shields.io/packagist/v/almasaeed2010/adminlte.svg)](https://packagist.org/packages/almasaeed2010/adminlte) [![Packagist](https://img.shields.io/packagist/v/almasaeed2010/adminlte.svg)](https://packagist.org/packages/almasaeed2010/adminlte)
[![CDNJS](https://img.shields.io/cdnjs/v/admin-lte.svg)](https://cdnjs.com/libraries/admin-lte) [![cdn version](https://data.jsdelivr.com/v1/package/npm/admin-lte/badge)](https://www.jsdelivr.com/package/npm/admin-lte)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/from-referrer/) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
**AdminLTE** is a fully responsive administration template. Based on **[Bootstrap 4.5](https://getbootstrap.com/)** framework and also the JS/jQuery plugin. **AdminLTE** is a fully responsive administration template. Based on **[Bootstrap 4.5](https://getbootstrap.com/)** framework and also the JS/jQuery plugin.
@ -26,10 +26,22 @@ There are multiple ways to install AdminLTE.
### Download & Changelog: ### Download & Changelog:
Download from GitHub latest release [AdminLTE 3](https://github.com/ColorlibHQ/AdminLTE/releases/latest). Always Recommended to download from GitHub latest release [AdminLTE 3](https://github.com/ColorlibHQ/AdminLTE/releases/latest) for bug free and latest features.\
Visit the [releases](https://github.com/ColorlibHQ/AdminLTE/releases) page to view the changelog. Visit the [releases](https://github.com/ColorlibHQ/AdminLTE/releases) page to view the changelog.\
Legacy Releases are [AdminLTE 2](https://github.com/ColorlibHQ/AdminLTE/releases/tag/v2.4.18) / [AdminLTE 1](https://github.com/ColorlibHQ/AdminLTE/releases/tag/1.3.1). Legacy Releases are [AdminLTE 2](https://github.com/ColorlibHQ/AdminLTE/releases/tag/v2.4.18) / [AdminLTE 1](https://github.com/ColorlibHQ/AdminLTE/releases/tag/1.3.1).
### Grab from [jsdelivr](https://github.com/ColorlibHQ/AdminLTE/releases/latest) CDN :
_**Important Note**: You needed to add separately cdn links for plugins in your project._
```html
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/js/adminlte.min.js"></script>
```
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/css/adminlte.min.css">
```
### Using The Command Line: ### Using The Command Line:
_**Important Note**: To install it via npm/Yarn, you need at least Node.js 10 or higher._ _**Important Note**: To install it via npm/Yarn, you need at least Node.js 10 or higher._
@ -37,19 +49,19 @@ _**Important Note**: To install it via npm/Yarn, you need at least Node.js 10 or
- **Via npm** - **Via npm**
```bash ```bash
npm install admin-lte@^3.0 --save npm install admin-lte@^3.1 --save
``` ```
- **Via Yarn** - **Via Yarn**
```bash ```bash
yarn add admin-lte@^3.0 yarn add admin-lte@^3.1
``` ```
- **Via Composer** - **Via Composer**
```bash ```bash
composer require "almasaeed2010/adminlte=~3.0" composer require "almasaeed2010/adminlte=~3.1"
``` ```
- **Via Git** - **Via Git**

View File

@ -0,0 +1,3 @@
<div class="preloader flex-column justify-content-center align-items-center">
<img class="animation__shake" src="{{ '/assets/img/AdminLTELogo.png' | prepend: site.baseurl }}" alt="AdminLTELogo" height="60" width="60">
</div>

View File

@ -4,6 +4,16 @@
<img src="{{ '/assets/img/logo-xl.png' | prepend: site.baseurl }}" alt="AdminLTE Docs Logo Large" class="brand-image-xs logo-xl" style="left: 12px"> <img src="{{ '/assets/img/logo-xl.png' | prepend: site.baseurl }}" alt="AdminLTE Docs Logo Large" class="brand-image-xs logo-xl" style="left: 12px">
</a> </a>
<div class="sidebar"> <div class="sidebar">
<div class="form-inline">
<div class="input-group" data-widget="sidebar-search">
<input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-sidebar">
<i class="fas fa-search fa-fw"></i>
</button>
</div>
</div>
</div>
<nav class="mt-2"> <nav class="mt-2">
<ul class="nav nav-pills nav-sidebar nav-child-indent flex-column" data-widget="treeview" role="menu"> <ul class="nav nav-pills nav-sidebar nav-child-indent flex-column" data-widget="treeview" role="menu">
{% for item in site.navigation -%} {% for item in site.navigation -%}

View File

@ -6,6 +6,8 @@
<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed"> <body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed">
<div class="wrapper"> <div class="wrapper">
{%- include preloader.html -%}
{%- include navbar.html -%} {%- include navbar.html -%}
{%- include sidebar.html -%} {%- include sidebar.html -%}

27
docs/index.md vendored
View File

@ -5,32 +5,43 @@ title: Introduction
AdminLTE can be installed using multiple methods. Pick your favorite method from the list below. Please be sure to check the dependencies section before continuing. AdminLTE can be installed using multiple methods. Pick your favorite method from the list below. Please be sure to check the dependencies section before continuing.
## Download
{: .h3 }
### From GitHub ### Download from GitHub
Visit the releases section on GitHub and download the [latest release](https://github.com/ColorlibHQ/AdminLTE/releases). Visit the releases section on GitHub and download the [latest release](https://github.com/ColorlibHQ/AdminLTE/releases).
### Grab from [jsdelivr](https://github.com/ColorlibHQ/AdminLTE/releases/latest) CDN :
_**Important Note**: You needed to add separately cdn links for plugins in your project._
```html
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/js/adminlte.min.js"></script>
```
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/css/adminlte.min.css">
```
### Command Line ### Command Line
#### Via NPM #### Via NPM
```bash ```bash
npm install admin-lte@^3.0 --save npm install admin-lte@^3.1 --save
``` ```
#### Via Yarn #### Via Yarn
```bash ```bash
yarn add admin-lte@^3.0 yarn add admin-lte@^3.1
``` ```
#### Via Composer #### Via Composer
```bash ```bash
composer require "almasaeed2010/adminlte=~3.0" composer require "almasaeed2010/adminlte=~3.1"
``` ```
#### Via Git #### Via Git
@ -38,7 +49,3 @@ composer require "almasaeed2010/adminlte=~3.0"
```bash ```bash
git clone https://github.com/ColorlibHQ/AdminLTE.git git clone https://github.com/ColorlibHQ/AdminLTE.git
``` ```
### From CDN
[https://www.jsdelivr.com/package/npm/admin-lte](https://www.jsdelivr.com/package/npm/admin-lte)