npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slidev-theme-academic-hehaorui

v1.1.3

Published

Academic presentations with Slidev made simple, modified by HE,HAORUI

Downloads

2

Readme

slidev-theme-academic npm npm https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg

Simplifies creating academic presentations with Slidev by providing the necessary components and layouts.

Install

Add the following frontmatter to your slides.md. Start Slidev then it will prompt you to install the theme automatically.

---
theme: academic
---

Learn more about how to use a theme.

Layouts

cover

| Parameter | Type | Default | Notes | | -------------------------- | -------- | --------------------------------- | --------------------------------------------------------------------------------- | | coverAuthor | String | undefined | - | | coverAuthorUrl | String | undefined | - | | coverBackgroundUrl | String | undefined | Adapt the text color with the built-in class attribute in the same frontmatter. | | coverBackgroundSource | String | undefined | - | | coverBackgroundSourceUrl | String | undefined | - | | coverDate | String | new Date().toLocaleDateString() | - |

cover

table-of-contents

table-of-contents puts custom content above the table of contents. If none is given, the content defaults to <h1>Table of Contents</h1>.

table-of-contents

index

index can be used as a general list for figures, references, tables etc..

index puts custom content above the list. If none is given, the content defaults to <h1>Index</h1>.

| Parameter | Type | Default | Notes | | --------------------------- | --------------------------------------------- | ----------- | -------------------------------------------------------------------------------------- | | indexEntries* | { title: string, uri?: number \| string }[] | undefined | Specify uri as a page number or optional URL in accordance with indexRedirectType. | | indexRedirectType | external \| internal | internal | - |

index

figure

| Parameter | Type | Default | Notes | | ------------------------ | -------- | ----------- | ------------------------ | | figureCaption | String | undefined | - | | figureFootnoteNumber | Number | undefined | Align with a Footnote. | | figureUrl* | String | undefined | - |

figure

figure-side

| Parameter | Type | Values | Default | Notes | | ------------------------ | -------- | ------------ | ----------- | ------------------------ | | figureCaption | String | - | undefined | - | | figureFootnoteNumber | Number | - | undefined | Align with a Footnote. | | figureUrl* | String | - | undefined | - | | figureX | String | 'l', 'r' | 'r' | - |

figure-side

Components

Footnotes

Footnotes is to be used as parent of Footnote children.

| Parameter | Type | Values | Default | Notes | | ------------- | -------- | --------------- | ----------- | --------------------------------------------------------------- | | filled | Boolean | true, false | false | Overlay subordinate content that may puts itself in background. | | separator | Boolean | true, false | false | - | | x | String | 'l', 'r' | 'r' | - |

Footnote

Footnote is to be used as children of a Footnotes parent.

| Parameter | Type | Notes | | ------------- | -------- | ------------------------------------------------ | | number | Number | Align with an attribution in the pages' content. |

Footnotes & Footnote

Pagination

Pagination is rendered globally by default. The global configuration can be defined using themeConfig.

If certain pages need individual configuration of Pagination, exclude them from global rendering of Pagination using themeConfig and add Pagination manually.

| Parameter | Type | Values | Default | Notes | | ------------- | ------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------- | | classNames | Array, String | - | undefined | Pagination by default uses the color given by the color schema currently active in Slidev. | | x | String | 'l', 'r' | 'r' | - | | y | String | 'b', 't' | 't' | - |

Pagination

themeConfig

Global parameters of the theme can be set using the themeConfig block in the frontmatter of the first page.

Be aware that defining the themeConfig block initializes all parameters as undefined; hence you may need to set parameters albeit using defaults.

| Parameter | Type | Values | Default | Notes | | ------------------------- | -------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | | paginationPagesDisabled | Array | - | undefined | Disable global rendering of Pagination for pages having individual Pagination. | | paginationX | String | 'l', 'r' | 'r' | To disable global default rending, set both paginationX and paginationY to undefined. Pagination can then still be used on selected pages. | | paginationY | String | 'b', 't' | 't' | To disable global default rending, set both paginationX and paginationY to undefined. Pagination can then still be used on selected pages. |

Contributing

  • npm run setup
  • npm run dev to start theme preview of example.md
  • Edit the example.md and style to see the changes
  • npm run export to generate the preview PDF
  • npm run screenshot to generate the preview PNG