From 3a465059bde1edfd9d14da72467458a567d8b095 Mon Sep 17 00:00:00 2001 From: Ashish Yadav <18111862+ashiishme@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:16:23 +0100 Subject: [PATCH] :recycle: fix documentation url --- docs/pages/fetching-relative-dates.mdx | 9 --------- docs/pages/fetching-relative-dates/get-previous-day.mdx | 8 ++++++++ docs/pages/initialization/_meta.json | 2 +- .../pages/working-with-dates/{getDay.mdx => get-day.mdx} | 0 .../working-with-dates/{getMonth.mdx => get-month.mdx} | 0 .../working-with-dates/{getYear.mdx => get-year.mdx} | 0 .../pages/working-with-dates/{setDay.mdx => set-day.mdx} | 0 .../working-with-dates/{setMonth.mdx => set-month.mdx} | 0 .../working-with-dates/{setYear.mdx => set-year.mdx} | 0 9 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 docs/pages/fetching-relative-dates/get-previous-day.mdx rename docs/pages/working-with-dates/{getDay.mdx => get-day.mdx} (100%) rename docs/pages/working-with-dates/{getMonth.mdx => get-month.mdx} (100%) rename docs/pages/working-with-dates/{getYear.mdx => get-year.mdx} (100%) rename docs/pages/working-with-dates/{setDay.mdx => set-day.mdx} (100%) rename docs/pages/working-with-dates/{setMonth.mdx => set-month.mdx} (100%) rename docs/pages/working-with-dates/{setYear.mdx => set-year.mdx} (100%) diff --git a/docs/pages/fetching-relative-dates.mdx b/docs/pages/fetching-relative-dates.mdx index b44190e..ef984c7 100644 --- a/docs/pages/fetching-relative-dates.mdx +++ b/docs/pages/fetching-relative-dates.mdx @@ -1,12 +1,3 @@ ## Fetching Relative Dates The `BikramSambat` class provides methods to fetch relative dates. - -### `getPreviousDay(): BikramSambat` - -Returns the previous day of the current Bikram Sambat date. - -```jsx copy -const date = new BikramSambat('2078-05-15') -const prevDay = date.getPreviousDay() // Date of the previous day -``` diff --git a/docs/pages/fetching-relative-dates/get-previous-day.mdx b/docs/pages/fetching-relative-dates/get-previous-day.mdx new file mode 100644 index 0000000..856841c --- /dev/null +++ b/docs/pages/fetching-relative-dates/get-previous-day.mdx @@ -0,0 +1,8 @@ +### `getPreviousDay(): BikramSambat` + +Returns the previous day of the current Bikram Sambat date. + +```jsx copy +const date = new BikramSambat('2078-05-15') +const prevDay = date.getPreviousDay() // Date of the previous day +``` \ No newline at end of file diff --git a/docs/pages/initialization/_meta.json b/docs/pages/initialization/_meta.json index 8781a95..c9571ce 100644 --- a/docs/pages/initialization/_meta.json +++ b/docs/pages/initialization/_meta.json @@ -1,5 +1,5 @@ { "with-date-string": "Initializing with a Date String", "with-another-date-instance": "Initializing with Another BikramSambat Instance", - "default-initilization": "Default Initialization" + "default-initialization": "Default Initialization" } diff --git a/docs/pages/working-with-dates/getDay.mdx b/docs/pages/working-with-dates/get-day.mdx similarity index 100% rename from docs/pages/working-with-dates/getDay.mdx rename to docs/pages/working-with-dates/get-day.mdx diff --git a/docs/pages/working-with-dates/getMonth.mdx b/docs/pages/working-with-dates/get-month.mdx similarity index 100% rename from docs/pages/working-with-dates/getMonth.mdx rename to docs/pages/working-with-dates/get-month.mdx diff --git a/docs/pages/working-with-dates/getYear.mdx b/docs/pages/working-with-dates/get-year.mdx similarity index 100% rename from docs/pages/working-with-dates/getYear.mdx rename to docs/pages/working-with-dates/get-year.mdx diff --git a/docs/pages/working-with-dates/setDay.mdx b/docs/pages/working-with-dates/set-day.mdx similarity index 100% rename from docs/pages/working-with-dates/setDay.mdx rename to docs/pages/working-with-dates/set-day.mdx diff --git a/docs/pages/working-with-dates/setMonth.mdx b/docs/pages/working-with-dates/set-month.mdx similarity index 100% rename from docs/pages/working-with-dates/setMonth.mdx rename to docs/pages/working-with-dates/set-month.mdx diff --git a/docs/pages/working-with-dates/setYear.mdx b/docs/pages/working-with-dates/set-year.mdx similarity index 100% rename from docs/pages/working-with-dates/setYear.mdx rename to docs/pages/working-with-dates/set-year.mdx