AnchorJS

在文档中添加深层锚链接。「Add deep anchor links to your docs.」

Github星跟踪图

AnchorJS Build Status

A JavaScript utility for adding deep anchor links (like these) to existing page content. AnchorJS is lightweight, accessible, and has no dependencies.

See Live Examples in the Documentation.

Anchoring links

Installation

Download AnchorJS using npm,

npm install anchor-js

or bower:

bower install anchor-js --save-dev

(or just download it from github).

Then include the anchor.js file (or anchor.min.js) in your webpage.

<script src="anchor.js"></script>

You could also include it via a CDN like CDNJS or jsDelivr.

Usage

See the Documentation for detailed instructions.

Compatibility

Currently Supports: IE9+ and modern browsers

Contributing devDependency Status

To contribute:

  1. Fork/Clone the repo.
  2. Make your changes.
  3. Write tests as needed.
  4. Run tests locally to confirm everything is working:
    • Install test modules: Run npm ci
    • Run all tests: npm test
  5. Minify the code: npm run release
  6. Submit a Pull Request.

License

Licensed with the MIT License.

主要指标

概览
名称与所有者bryanbraun/anchorjs
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2013-11-09 05:19:05
推送于2025-03-13 22:13:32
最后一次提交
发布数27
最新版本名称5.0.0 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数890
关注者数18
派生数57
提交数300
已启用问题?
问题数83
打开的问题数3
拉请求数87
打开的拉请求数1
关闭的拉请求数25
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?