mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
Update deprecated GitHub Buttons data-count-api (#616)
Also, use single quotes for JS
This commit is contained in:
parent
6c9c7e5de5
commit
8929634997
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
const React = require("react");
|
||||
const React = require('react');
|
||||
|
||||
const GitHubButton = props => (
|
||||
<a
|
||||
|
@ -13,7 +13,7 @@ const GitHubButton = props => (
|
|||
href={`https://github.com/${props.config.organizationName}/${props.config.projectName}`}
|
||||
data-icon="octicon-star"
|
||||
data-count-href={`/${props.config.organizationName}/${props.config.projectName}/stargazers`}
|
||||
data-count-api={`/repos/${props.config.organizationName}/${props.config.projectName}#stargazers_count`}
|
||||
data-show-count="true"
|
||||
data-count-aria-label="# stargazers on GitHub"
|
||||
aria-label="Star this project on GitHub"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue