andy-franklin/cv-bundle

一个简单的简历包。生成配置并使用贡献的模板来创建简单的HTML文件简历

dev-master 2018-11-12 20:37 UTC

This package is auto-updated.

Last update: 2024-09-13 11:52:37 UTC


README

提供一个简单的可扩展基础,用于生成简历页面。

用法

安装

composer require andy-franklin/cv-bundle

在您的 bundles.php 文件中启用这些包。

AndyFranklin\CVBundle\AndyFranklinCVBundle::class => ['all' => true],

配置

使用命令为您生成此配置

php bin/console afcv:generate:config

或手动修改配置

# config/packages/andy_franklin_cv.yaml
andy_franklin_cv:
   name: 'Andy Franklin'
   job_title: 'Web Developer'
   work_place: 'The Drum'
   summary: 'Experienced Web Developer with a demonstrated history of working in the publishing industry. Skilled in PHP, MySql, Symfony, HTML, CSS, JavaScript and Teamwork. Strong engineering professional with a BSc Web and Mobile Development (Hons) from The University of the West of Scotland.'
   social_links:
       - { type: 'github', link: 'https://github.com/Andy-franklin' }
       - { type: 'email', link: 'cv@andyfranklin.co.uk' }
       - { type: 'linkedIn', link: 'https://www.linkedin.com/in/andy-franklin-28854680/' }
   experience:
       - { title: 'experience one', description: 'description of experience one' }
       - { title: 'experience two', description: 'description of experience two' }
   skills:
       - { title: 'skill one', description: 'description of skill one' }
       - { title: 'skill two', description: 'description of skill two' }
   interests:
       - { title: 'interest one', description: 'description of interest one' }
       - { title: 'interest two', description: 'description of interest two' }

查看可用模板

要查看可用模板,请运行命令

php bin/console afcv:list:templates

通过Symfony提供页面服务

使用列表命令的输出,将模板名称传递给indexAction

# config/routes.yaml
index:
    path: /
    controller: AndyFranklin\CVBundle\Controller\DefaultController::indexAction

或者,生成一个单独的HTML页面以在其他地方托管

使用列表命令的输出,将模板名称作为参数传递给generate:html命令。

php bin/console afcv:generate:html <template_name>

贡献

此包依赖于有模板被贡献出来供他人使用。

模板指南

如果您想添加到收藏夹,请将您的twig文件放入自己的文件夹中,并使用所需的模板名称。在您的模板文件夹中,将模板的入口点命名为 index.html.twig

在twig模板中包含所有自定义样式和脚本,以便渲染为单个HTML文件。使用CDN或外部样式和脚本是可以的。

许可证

MIT