"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
docs: Add hover over links on headings
Nick Craig-Wood8a771450d246
diff --git a/docs/config.json b/docs/config.jsonindex 97ebcf579..59caacc0c 100644--- a/docs/config.json+++ b/docs/config.json@@ -9,6 +9,7 @@"description": "rclone - rsync for cloud storage: google drive, s3, swift, cloudfiles, dropbox, memstore...","canonifyurls": true,"blackfriday": {- "smartDashes": false+ "smartDashes": false,+ "plainIDAnchors": true}}diff --git a/docs/layouts/chrome/footer.html b/docs/layouts/chrome/footer.htmlindex 8a028c31f..4ec8c6d9f 100644--- a/docs/layouts/chrome/footer.html+++ b/docs/layouts/chrome/footer.html@@ -1,5 +1,6 @@<script src="/js/jquery.js"></script><script src="/js/bootstrap.js"></script>+ <script src="/js/custom.js"></script></body>-</html>\ No newline at end of file+</html>diff --git a/docs/static/css/custom.css b/docs/static/css/custom.cssindex 76101285b..a16c8b02d 100644--- a/docs/static/css/custom.css+++ b/docs/static/css/custom.css@@ -24,3 +24,18 @@ thead td, th {tbody tr:nth-child(odd) {background-color:#d0d0ff}++/* Hover over links on headers */+.header-link {+ position: absolute;+ left: -0.5em;+ opacity: 0;+ transition: opacity 0.2s ease-in-out 0.1s;+}+h2:hover .header-link,+h3:hover .header-link,+h4:hover .header-link,+h5:hover .header-link,+h6:hover .header-link {+ opacity: 1;+}diff --git a/docs/static/js/custom.js b/docs/static/js/custom.jsnew file mode 100644index 000000000..66387685b--- /dev/null+++ b/docs/static/js/custom.js@@ -0,0 +1,14 @@+// Site JS++// Add hover links on headings+$(function() {+ return $("h2, h3, h4, h5, h6").each(function(i, el) {+ var $el, icon, id;+ $el = $(el);+ id = $el.attr('id');+ icon = '<i class="fa fa-link"></i>';+ if (id) {+ return $el.prepend($("<a />").addClass("header-link").attr("href", "#" + id).html(icon));+ }+ });+});