Skip to content

Commit

Permalink
docs: update link formatting and faqs
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy committed Nov 5, 2024
1 parent 2b766ac commit b8ad8f9
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 59 deletions.
8 changes: 4 additions & 4 deletions src/components/LatestRelease.astro
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ const { downloadLinks, version, releaseDate } = await loadInitialData();
))}
</div>
<div class="w-80">
<p>Current Version: {version}.</p>
<p>Released on {releaseDate}.</p>
<p>Latest version: <a href={REPO_RELEASES_URL}>{version}</a></p>
<p class="mt-1">Released on: {releaseDate}</p>
{downloadLinks.alt.length > 0 && (
<p>
<p class="mt-1">
Also available on:
<ul class="list-disc list-inside ml-4">
{downloadLinks.alt.map((platform, index) => (
<li>
<a href={platform.url || REPO_RELEASES_URL} class="hover:text-blue-600 hover:underline">
<a href={platform.url || REPO_RELEASES_URL}>
{platform.name}
</a>
</li>
Expand Down
102 changes: 48 additions & 54 deletions src/components/solid/FaqAccordion.tsx
Original file line number Diff line number Diff line change
@@ -1,61 +1,55 @@
import { SolidMarkdown } from 'solid-markdown';
import { SolidMarkdown } from "solid-markdown";
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from '~/components/ui/Accordion';
import { siteMetadata } from '~/constants';
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "~/components/ui/Accordion";
import { siteMetadata } from "~/constants";

const content = [
{
id: '1',
question: "My notifications aren't showing?",
answer:
"Some organizations require applications to request access before allowing access to any data (including notifications) about their repositories.\n\nTo check if Gitify is approved by your organisation you can go to [settings](https://github.com/settings/applications), then click on **Gitify** and scroll to **Organization access**.\n\nAlternatively, if you generated a **PAT**, you can check if it has the correct permissions by going to [settings](https://github.com/settings/tokens) and checking if the token's SSO has been Authorized.",
},
{
id: '2',
question: 'GitHub Enterprise Server - Authorizing via OAuth?',
answer:
'If you want to use OAuth to authenticate with Gitify, first create a new application within _**GitHub** → **Settings** → **Developer settings** → **OAuth Apps**_.\n\nComplete all the fields, ensuring you use https://www.gitify.io/callback as the _**Authorization callback URL**_. Once saved, click on _**Generate a new client secret**_ to get a client/secret pair that you can use with Gitify.',
},
{
id: '3',
question: 'Unsubscribe from Thread - What does this mean?',
answer:
'When you **Unsubscribe from Thread**, you will not receive future notifications for the thread until you either comment on the thread or get a **@mention**.\n\n_Note: If you are watching a repository, you receive notifications for all threads by default._',
},
{
id: '4',
question: 'Something looks wrong - How can I debug?',
answer:
'You can debug Gitify by pressing:\n- macOS: `command + opt + i`\n- Windows + Linux: `ctrl + shift + i`\n\nThis will open the dev tools and then you can see any logs, network requests etc.',
},
{
id: '5',
question: 'Are there local log files?',
answer:
'There sure is! You can find them on your device at:\n- macOS: `~/Library/Logs/gitify`\n- Windows: `%USERPROFILE%\\AppData\\Roaming\\gitify`.',
},
{
id: '6',
question: 'How can I contribute to Gitify?',
answer: `You can contribute to Gitify by opening a pull request @[${siteMetadata.repo}](https://github.com/${siteMetadata.repo})! Check out our open issues and see if there's anything you'd like to work on.`,
},
{
id: "1",
question: "My notifications aren't showing?",
answer:
"When authenticating via **Personal Access Token (PAT)**:\n- open [GitHub Developer Settings >> Tokens](https://github.com/settings/tokens)\n- confirm that your PAT has the following permissions: `notifications`, `read:user` and `repo`\n\nWhen authenticating via **Gitify GitHub App**:\n- some organizations require GitHub Apps to request access prior to allowing access to organization data (including notifications)\n- to check if Gitify is approved by your organization open [GitHub Developer Settings >> GitHub Apps](https://github.com/settings/applications), then click on _Gitify_ and scroll to _Organization access_",
},
{
id: "2",
question: "How to configure OAuth App authentication?",
answer:
"To authenticate via an **OAuth App**:\n- create a new application within _GitHub → Settings → Developer settings → OAuth Apps_.\n- Set _Authorization callback URL_ as `https://www.gitify.io/callback`\n- Complete all remaining mandatory fields\n- Click _Register application_\n- Now click on _Generate a new client secret_\n- Use this client/secret pair within Gitify to authenticate.",
},
{
id: "3",
question: "What does 'Unsubscribe from Thread' mean?",
answer:
"When you **Unsubscribe from Thread**, you will not receive future notifications for the thread until you either comment on the thread or get a **@mention**.\n\n_Note: If you are watching a repository, you receive notifications for all threads by default._",
},
{
id: "4",
question: "Something is not working as expected, how can I debug Gitify?",
answer:
"Using **Chrome Developer Tools** (console logs, network requests, etc):\n- All platforms: right click tray icon then _Developer → Toggle Developer Tools_\n- macOS: `command + opt + i`\n- Windows + Linux: `ctrl + shift + i`\n\nUsing **Application Log Files**:\n- macOS: `~/Library/Logs/gitify`\n- Windows: `%USERPROFILE%\\AppData\\Roaming\\gitify`",
},
{
id: "6",
question: "How can I contribute to Gitify?",
answer: `You can contribute to Gitify by opening an issue or pull request on GitHub at [${siteMetadata.repo}](https://github.com/${siteMetadata.repo}).\n\nCheck out our [open issues](https://github.com/${siteMetadata.repo}/issues) and see if there is any existing ideas that you would like to work on.`,
},
];

export const FaqAccordion = () => {
return (
<Accordion multiple collapsible>
{content.map((item) => (
<AccordionItem value={item.id}>
<AccordionTrigger>{item.question}</AccordionTrigger>
<AccordionContent>
<SolidMarkdown children={item.answer} class="markdown" />
</AccordionContent>
</AccordionItem>
))}
</Accordion>
);
return (
<Accordion multiple collapsible>
{content.map((item) => (
<AccordionItem value={item.id}>
<AccordionTrigger>{item.question}</AccordionTrigger>
<AccordionContent>
<SolidMarkdown children={item.answer} class="markdown" />
</AccordionContent>
</AccordionItem>
))}
</Accordion>
);
};
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const openSourceLibs = [

<SectionRow
title="All your GitHub notifications on your desktop. Nice & Easy."
description="<p>Ever got lost with GitHub notifications? Too many emails?</p><br /><p>Gitify is all about making your life easier. Sitting on your menu bar, it informs you for any GitHub notifications without being annoying and of course without adverts. It just gets the job done.</p><br /><p>Works with GitHub Cloud and GitHub Enterprise Server. You can even connect **multiple** accounts.</p>"
description="<p>Ever got lost with GitHub notifications? Too many emails?</p><br /><p>Gitify is all about making your life easier. Sitting on your menu bar, it informs you for any GitHub notifications without being annoying and of course without adverts. It just gets the job done.</p><br /><p>Works with GitHub Cloud and GitHub Enterprise Server. You can even connect multiple accounts.</p>"
screenshot={{
path: 'all-read',
alt: 'Screenshot when there are no notifications read',
Expand Down
12 changes: 12 additions & 0 deletions src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
@tailwind components;
@tailwind utilities;

a {
@apply font-semibold hover:text-blue-600 hover:underline;
}

.markdown ul {
@apply list-disc m-4;
}

.markdown ul > li {
@apply m-2;
}

.markdown p + ul {
padding-top: 0; /* Remove padding if <p> is followed by <ul> */
}

.markdown p:not(:last-child):not(:has(+ ul)) {
padding-bottom: 1rem;
}

0 comments on commit b8ad8f9

Please sign in to comment.