Giter VIP home page Giter VIP logo

date-fns.org's Introduction

date-fns.org

date-fns.org is the date-fns website. It provides information about key library features, API browser, documentation, etc.

Running locally

To run the website locally, use:

yarn
yarn start

The website will be available on http://localhost:1337/

date-fns.org's People

Contributors

bl-ue avatar ckcherry23 avatar fturmel avatar j-f1 avatar kossnocorp avatar leshakoss avatar tan75 avatar timrael avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

date-fns.org's Issues

Example rendering bug

  1. open any documentation entry with @example
  2. open any other documentation entry with @example
  3. @example of the first entry is shown instead of @example of the second
  4. open documentation entry without @example to reset shown example

Usage section

Two tabs:

  1. CommonJS: var nameOfFunction = require('date-fns/name_of_function')
  2. UMD: var nameOfFunction = dateFns.nameOfFunction

Scroll behavior is weird when navigating

When navigating to a different doc page after having scrolled the current page (which is a common use case when reading the doc), the right panel keeps its scroll position after updating its content. This is very confusing because it forces to scroll up to be able to start reading the new content.
I suggest scrolling to top again when switching page.

I'm using Firefox in case this is browser-specific.

No arguments functions bug

If function has no arguments, site fails to show its documentation. E.g.: endOfToday, endOfTomorrow, endOfYesterday
Error:
TypeError: undefined is not an object (evaluating 'args.map')

Improve SEO

  • Set basic meta tags
  • Set Facebook tags
  • Set Twitter tags

Add `dateFns` object to global scope on date-fns.org

Sometimes it's super useful to try some functions right on the date-fns.org website. The easiest way to do this - make available dateFns object in global scope. Every developer could just open a console of the browser, try and combine any functions.

For example, https://lodash.com/ has global _ object on their website and I often use it.

Update "Getting Started" section

  • Add an example with <script> to the Bower tab
  • Add an example to the CDN (cdn.date-fns.org/v1.0.0-rc10/date_fns.js)
  • Add a link to download to the CDN tab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.