Skip to content

Commit

Permalink
docs: update section Contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegShchavelev committed Jul 14, 2024
1 parent c12166e commit befea40
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .vitepress/theme/components/AMWHomeTeam.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@

<script setup lang="ts">
import { computed } from 'vue'
import { useData } from 'vitepress'
import { VPTeamPage, VPTeamPageTitle, VPButton, VPTeamMembers } from 'vitepress/theme'
import { sortMembers } from '../composables/sorters.ts'
import { homeSorting, limit } from '../../data/team.ts'
import { data as team } from '../loaders/gitlogDataLoader.data'
const { frontmatter } = useData()
const props = computed(() => frontmatter.value.teams ?? {})
</script>

<template>
<ClientOnly>
<VPTeamPage>
<VPTeamPageTitle>
<template #title> Участники </template>
<template #title v-if="props.title">{{ props.title }}</template>
</VPTeamPageTitle>
<VPTeamMembers :members="sortMembers(team, homeSorting).slice(0, limit)" />
<div class="teamButton">
<VPButton text="Все участники" class="button" size="big" href="/projects/contributions" />
<div class="teamButton" v-if="props.moreLink">
<VPButton :text="props.moreText" class="button" size="big" :href="props.moreLink" />
</div>
</VPTeamPage>
</ClientOnly>
Expand Down
3 changes: 2 additions & 1 deletion .vitepress/theme/components/AMWTeamPage.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useData } from 'vitepress'
import { VPTeamPage, VPTeamPageTitle, VPTeamPageSection, VPTeamMembers } from 'vitepress/theme'
import { data as team } from '../loaders/gitlogDataLoader.data'
import { developersSection, membersSection, teamSorting } from '../../data/team.ts'
import { sortMembers } from '../composables/sorters.ts'
import { useData } from 'vitepress'
const { frontmatter } = useData()
</script>

Expand Down
5 changes: 4 additions & 1 deletion docs/en/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
title: Main
gitChangelog: false
Expand All @@ -23,6 +22,10 @@ features:
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
teams:
title: Contributions
moreText: All contributions
moreLink: projects/contributions/
sponsors:
introtext: This service is a Free Software project and its support and development depends only on our joint activity.
collections:
Expand Down
4 changes: 4 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ features:
details: Всё знакомо&#58; от сообщества до приложений в операционной системе.
- title: Свобода выбора и открытого ПО
details: Единая инфраструктура для сборки программного обеспечения в общем репозитории «Сизиф»
teams:
title: Участники
moreText: Все участники
moreLink: projects/contributions/
sponsors:
introtext: Данный сервис является CПО-проектом и его поддержка и развитие зависит только от нашей совместной активности.
collections:
Expand Down

0 comments on commit befea40

Please sign in to comment.