npm

@portfolio.md/builder
TypeScript icon, indicating that this package has built-in type declarations

0.0.55 • Public • Published

portfolio.md

Node.js library which helps to generate static portfolio and resume website with minimal configuration!

How to create new portfolio

  1. Create new folder using
mkdir portfolio
cd portfolio
  1. To generate new portfolio.md project run script provided below
npx @portfolio.md/scaffolder
  1. To run website run
npm run dev
  1. To build website run
npm run build
  1. After build you will get your static website files located in dist folder. Which you can deploy on any static files hosting

Configuration

After scaffolding new portfolio you will get project structure like this:

  • content
    • *.md
    • *.svg
  • cv.config.ts
  • package.json

Content folder contains all markdown files used to build pages of our portfolio. It also can contain images used in portfolio. For example image in header

cv.config.ts is configuration file which is needed to build your portfolio

export type CvConfig = {
  /**
   * Website metadata configuration settings
   */
  meta: {
    /**
     * Website title
     */
    title: string;
    /**
     * Website description
     */
    description: string;
    /**
     * Verification tokens for google search console etc.
     */
    verification?: {
      /**
       * Token for google search console verification
       */
      google: string;
    };
  };
  /**
   * Header home section settings
   */
  home: {
    /**
     * Home section title
     */
    title: string;
    /**
     * Url of home link
     */
    url: string;
    /**
     * Image name provided in images section.
     */
    logo: string;
  };
  /**
   * Website pages list
   */
  pages: {
    [page: string]: {
      /**
       * Url or path to markdown file of the page
       */
      file: string;
      /**
       * Generate files settings
       */
      generate?: {
        /**
         * Generate pdf
         */
        pdf?: boolean;
        /**
         * Generate docx
         */
        docx?: boolean;
      };
      /**
       * Header menu item settings
       */
      menu?: {
        /**
         * Header menu item title
         */
        title: string;
        /**
         * Header menu item url
         */
        url?: string;
      };
      /**
       * Is main page. Can have only one
       */
      isMain?: boolean;
    };
  };
  /**
   * List of website socials shown in footer section
   */
  socials: {
    /**
     * Social network page url
     */
    url: string;
  }[];
  /**
   * Website credentials
   */
  credentials: {
    /**
     * Year shown in footer credentials section
     */
    year: number;
    /**
     * Title shown in footer credentials section
     */
    title: string;
    /**
     * Url of credentials title element
     */
    url: string;
  };
  /**
   * List of images used by website
   */
  images: {
    [name: string]: string;
  };
  /**
   * Analytics settings
   */
  analytics?: {
    /**
     * Gtag for google analytics
     */
    gTag?: string;
  };
};

Examples

Example websites created using portfolio.md

Built with

  • Next.js
  • NX monorepo manager

Readme

Keywords

none

Package Sidebar

Install

npm i @portfolio.md/builder

Weekly Downloads

8

Version

0.0.55

License

MIT

Unpacked Size

180 kB

Total Files

60

Last publish

Collaborators

  • dmytro.baida