Coder Social home page Coder Social logo

getkirby / getkirby.com Goto Github PK

View Code? Open in Web Editor NEW
128.0 11.0 264.0 1.8 GB

Source code and content for the Kirby website

Home Page: https://getkirby.com

JavaScript 0.93% PHP 95.20% Hack 0.78% CSS 3.09%
kirby website file-based cms php documentation

getkirby.com's Introduction

Kirby website

This repo contains the whole <getkirby.com> website.

Requirements

Local development server running PHP 8.1+ (e.g. Apache, nginx, MAMP).

Installation and setup

Clone the repo into an empty folder

git clone [email protected]:getkirby/getkirby.com.git

Metadata for search engines and social media

See site/plugins/meta/README.md for further information.

getkirby.com's People

Contributors

adamkiss avatar adspectus avatar afbora avatar bastianallgeier avatar bezin avatar bnomei avatar distantnative avatar fabianmichael avatar flokosiol avatar github-actions[bot] avatar hashandsalt avatar johannschopplich avatar kevinvennitti avatar lukasbestle avatar lukaskleinschmidt avatar luxuryluke avatar mauricerenck avatar medienbaecker avatar moritzebeling avatar mrflix avatar nilshoerrmann avatar preya avatar rasteiner avatar rlb222 avatar sebastiangreger avatar simlawr avatar texnixe avatar tobiasfabian avatar tobimori avatar trych 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  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  avatar  avatar  avatar

getkirby.com's Issues

Signature of Template Components

It seems like the signature of core components changed. The docs currently feature this example:

class CustomTemplate extends Kirby\Cms\Template {

}

Kirby::plugin('your/plugin', [
    'components' => [
        'template' => function (App $kirby, string $name, array $data = [], string $contentType = null) {
            return new CustomTemplate($name, $data, $contentType);
        }
    ]
]);

It should be like this instead:

class CustomTemplate extends Kirby\Cms\Template {

}

Kirby::plugin('your/plugin', [
    'components' => [
        'template' => function (App $kirby, string $name, string $contentType = null) {
            return new CustomTemplate($name, $contentType);
        }
    ]
]);

$data is now directly passed to the render function as a variable.

Sticky navigation in cheatsheet

It would be helpful if a nav with jump marks to the different content sections existed. Similar to the navigation in the guides but sticky.

Changelog for crucial/breaking changes from v2 to v3

@jenstornell:

Maybe you are already doing it, but on release I think most of us would need a really big changelog of every function that has changed in behavior, name or arguments.

The most important for this changelog is the core I think, because it will probably be hard to spot the changes right away. There seems to be many small changes here and there.

Because the panel is completely rewritten I don't find the changelog as important there. In the panel case I think pure docs will be the most helpful. Maybe hooks is the only feature that stick around from Kirby 2.

There will be content changes as well, especially when it comes to naming of files. Also if there was a change in how/where images will be stored.

Open source docs?

When I find stuff missing in the docs and get help in the Slack channel, I wouldn't mind adding an explanation to the documentation. Wouldn't it be helpful to open source the docs so people can submit pull requests?

[Docs] Devkit without Public Folder Instructions

as mentioned in Slack.

if anyone were to use the devkit (composer) the configuration would always lead to having a public folder as a requirement. Many hosts do not provide the functionality for having a public folder to protect content so we would have to change some things get rid the public folder and rearrange some folders and files to make it working. But still being able to update our devkit / current nighties and composer.

Index.php and htaccess has to be moved from the public to root folder.
Index.php has to be changed to

<?php
require_once __DIR__ . '/vendor/autoload.php';

$kirby = new Kirby([
    'roots' => [
        'index'    => __DIR__,
        'base'     => $base    = __DIR__,
        'content'  => $base . '/content',
        'site'     => $base . '/site',
        'storage'  => $storage = $base . '/storage',
        'accounts' => $storage . '/accounts',
        'cache'    => $storage . '/cache',
        'sessions' => $storage . '/sessions',
    ]
]);

echo $kirby->render();

since it's kinda searching for a storage folder, as well as setting it's base to one parent directory we need to change it accordingly as above.

We need to move and create inside root

  • assets/
  • assets/js
  • assets/css

as well as

  • media
  • storage (plus subfolders)

if path's are not set properly inside the index file, the panel e.g. will still prompt to "install" an account, however it won't show any page or information but stay blank.

Routes as callbacks

Kirby::plugin('demo/plugin', [
	'routes' => function ($kirby) {
		return [
			[
				'pattern' => '...',
				'action' => function () {

				}
			]
		];
	}
]);

Plugin Types Routes missing

image

I'm missing the Plugin Types Routes here:
https://nnnnext.getkirby.com/docs/guide/extending-kirby/plugin-types

To find it I needed to go here:
https://nnnnext.getkirby.com/docs/guide/routing

I expected it more to be in the list of "Plugin Types" than under "Routing" because it has to do with extending the plugin when using Kirby::plugin.

Possible solutions

  1. Add it in both places WET.
  2. Add it in plugin-types/routes and then link to that page from the more general routing page.

[Plugins] Composer dependency order and DevKit

i am using the DevKit setup via composer and my plugins id look like bnomei/something. but when i create them as composer plugins and publish them on packagist and require them again this will cause an error.

Kirby class not found.

why? because bnomei/something gets loaded before getkirby/cms.
i temporarly fixes this by requiring getkirby/cms in my plugins and ignoring vendor, folder but this way i will not be able to serve clean zips (which can be extracted in site/plugins/ folder ) once betas are over.

my composer knowledge is limited... maybe it can be done. any ideas how to solve this?

search

Will you incorporate some way to search the docs?

[Docs] Panel UI palette

All the colors used in the panel. Someone, maybe Fabian had a great list of colors a long time ago.

If there are css variables that we can use, it may be helpful as well.

Some "Quickstart" links are broken

In the section Where to go from here the links linking to "What's new in Kirby 3" and "Upgrade Guide" are linking to non-existing pages. I think they are just located elsewhere.

Plugin translations

New in beta 4

Kirby::plugin('demo/plugin', [
	'translations' => [
		'en' => [
			'export' => 'Export', 
		],
		'de' => [
			'export' => 'Exportieren', 
		]	
	]
]);
panel.plugin('demo/plugin', {
	fields: {
		export: {
			template: "<k-button>{{ $t('export') }}</k-button>"
		}
	}
});

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.