Skip to content

Commit

Permalink
docs: add twitter follow
Browse files Browse the repository at this point in the history
  • Loading branch information
krisk committed May 8, 2022
1 parent 21f9dec commit 5a95d9f
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 1 deletion.
24 changes: 24 additions & 0 deletions docs/.vuepress/components/TwitterFollow/TwitterFollow.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div>
<a
href="https://twitter.com/kirorisk?ref_src=twsrc%5Etfw"
class="twitter-follow-button"
data-size="large"
data-show-screen-name="false"
data-dnt="true"
data-show-count="false"
>Follow</a
>
<script
async
src="https://platform.twitter.com/widgets.js"
charset="utf-8"
></script>
</div>
</template>

<script>
export default {
name: 'TwitterFollow'
}
</script>
3 changes: 2 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function getPlugins() {
getComponent('Demo'),
getComponent('Team'),
getComponent('Jobs'),
getComponent('Donate')
getComponent('Donate'),
getComponent('TwitterFollow')
]
}
]
Expand Down
2 changes: 2 additions & 0 deletions docs/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,14 @@ h2 {
border-bottom: none;
}

// Twitter
nav.nav-links div:nth-child(3) a {
background-image: url(/assets/img/twitter.svg);
background-repeat: no-repeat;
padding-left: 30px; /* width of the image plus a little extra padding */
}

// Github
nav.nav-links div:nth-child(4) a {
background-image: url(/assets/img/github.svg);
background-repeat: no-repeat;
Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ shareTitle: Fuse.js - JavaScript fuzzy-search library

# What is Fuse.js?

<TwitterFollow />

<!-- <a href="https://twitter.com/kirorisk?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-dnt="true" data-show-count="false">Follow</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> -->

<!-- <social-share :networks="['twitter', 'reddit', 'linkedin', 'email']" /> -->

Fuse.js is a **powerful, lightweight fuzzy-search library, with zero dependencies**.
Expand Down
2 changes: 2 additions & 0 deletions docs/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ tags:

# Options

<TwitterFollow />

## Basic Options

### `isCaseSensitive`
Expand Down
2 changes: 2 additions & 0 deletions docs/concepts/scoring-theory.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Scoring Theory

<TwitterFollow />

Once we have a list of matching items, they need to be ranked by a **relevance score**. This score is determined by three factors:

- Fuzziness score
Expand Down
2 changes: 2 additions & 0 deletions docs/demo.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Live Demo

<TwitterFollow />

Play around with a live demo of Fuse.js. Have a look at the [options](api/options.html) to understand what they mean.

<!--
Expand Down
4 changes: 4 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Examples

<TwitterFollow />

---

## Search String Array

:::: tabs
Expand Down

0 comments on commit 5a95d9f

Please sign in to comment.